This macro expression represents the
full path to the folder or file.
Since version Pm8.3.4 this macro expression is usually replaced by a path beginning with # character - see PROMOTIC path to files and 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 macro expression: $path.type:file
The
path type can be:
$.path("app") -
path to the PROMOTIC application 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 information to this folder (the information that is not changed very often - contrary to
$.path("data")).
$.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")
$.path("pmres","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/