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("app") -
Path to the folder of the PROMOTIC application.
$.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("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/