Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Macro expression $.path

This macro expression represents the full path to the folder or file.

Up to 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("pm") - path to the PROMOTIC folder (e.g. c:/pm/ by default).
 
$.path("pmres") - path to the PROMOTIC resources folder (e.g. c:/pm/resource/ by default).
 
$.path("app") - path to the PROMOTIC application folder.
 
$.path("appres") - path to the application resources folder (images, sounds, ..) (the folder is defined in the configurator PmRoot > Application > #appres: - to resources (resources: jpg,gif,avi,wav,...)).
 
$.path("data") - path to the data files folder of the application (the folder is defined in the configurator PmRoot > Application > #data: - to data files). It is recommended to save any data files to this folder.
 
$.path("cfg") - path to the application configuration files folder (the folder is defined in the configurator PmRoot > Application > #cfg: - to configuration files). 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("temp") - path to the application temporary files folder (the folder is defined in configurator PmRoot > Application > #temp: - to temporary files).
 
$.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")
then result is, for example, C:/PmProj/BoilerPlant/Resource/tank.bmp
$.path("pmres","Img/Tank020.svg")
then result is, for example, C:/Pm/Resource/Img/Tank020.svg
$.path("data","Db/db1.mdb")
then result is, for example, C:/PmProj/BoilerPlant/Data/Db/db1.mdb
$.path("win")
then result is, for example, C:/Windows/
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice