Update cookies preferences
Promotic

Macro expression $.path

This macro expression represents the full path to the folder or to the file.
Since version Pm8.3.4 this macro expression is replaced by a path beginning with # character - see PROMOTIC path to files or folders. The macro expression is still functional, but its usage is recommended only in special cases, if creation of Microsoft path is needed inside the compounded macro expression.

Syntax:
$.path("type","file")
- type = determines the path type
- file = (optional) determines the file (or the next path)

Obsolete syntax of the macro expression: $path.type:file

The path type can be:

$.path("pm") - Path to the folder of the PROMOTIC system (usually e.g. C:\Promotic\PmVXXYY/).


$.path("pmres") - Path to the PROMOTIC resources folder (usually e.g. C:\Promotic\PmVXXYY\Resource/).


$.path("app") - Path to the folder of the PROMOTIC application.


$.path("appres") - Path to the application resources folder (images, sounds …) (the folder is defined in the "PmaRoot > Application > #appres: - to resources (resources: jpg,gif,avi,wav,...)" configurator).


$.path("data") - Path to the data files folder of the application (the folder is defined in the "PmaRoot > Application > #data: - to data files" configurator). It is recommended to save any data files to this folder.


$.path("cfg") - Path to the configuration files folder of the application (the folder is defined in the "PmaRoot > Application > #cfg: - to configuration files" configurator). It is recommended to store files with a configuration data to this folder (the information that is not changed very often - contrary to $.path("data")).


$.path("temp") - Path to the application temporary files folder (the folder is defined in the "PmaRoot > Application > #temp: - to temporary files" configurator).


$.path("win") - Path to the Windows folder (e.g. c:/windows/).


$.path("winsys") - Path to the Windows system folder (e.g. c:/windows/system32/).


Example:
$.path("appres","tank.bmp")
the result is, for example, C:\Promotic\Apps/BoilerPlant/Resource/tank.bmp
$.path("pmres","Img/Tank020.svg")
the result is, for example, C:\Promotic\PmVXXYY\Resource\Img/Tank020.svg
$.path("data","Db/db1.mdb")
the result is, for example, C:\Promotic\Apps/BoilerPlant/Data/Db/db1.mdb
$.path("win")
the result is, for example, C:/Windows/
PROMOTIC 9.0.29 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.