Path templates
Path templates allow you to specify file paths that are not static, but adjust to the localization and user names of the installation they're used on. It also allows you to scan more than one location in a single row.
Path templates use the same formatting, with angle brackets and the dollar sign, as description templates.
Examples
The following table describes sample folders; in addition to that, keep in mind that any of these templates will be used for every user of the system, e.g. <$DESKTOP> actually looks for a file on every users desktop, not just one as seen in the list below. Also, where applicable, system folders do contain values for both 32 and 64 bit.
Path Template | Example Location |
---|---|
<$ADESKTOP> | C:\Documents and Settings\Dummy\Desktop\ |
<$ALTSTARTUP> | C:\Documents and Settings\Dummy\Start Menu\Programs\Startup\ |
<$APPDATA> | C:\Documents and Settings\Default User\Application Data\ |
<$COMMONALTSTARTUP> | C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ |
<$COMMONAPPDATA> | C:\Documents and Settings\All Users\Application Data\ |
<$COMMONDESKTOP> | C:\Documents and Settings\All Users\Desktop\ |
<$COMMONDOCUMENTS> | C:\Documents and Settings\All Users\Documents\ |
<$COMMONFAVORITES> | C:\Documents and Settings\All Users\Favorites\ |
<$COMMONMUSIC> | C:\Documents and Settings\All Users\Documents\My Music\ |
<$COMMONPROGRAMFILES> | C:\Program Files (x86)\Common Files\ |
<$COMMONPROGRAMS> | C:\Documents and Settings\All Users\Start Menu\Programs\ |
<$COMMONQUICKLAUNCH> | C:\Documents and Settings\All Users\Application Data\Microsoft\Internet Explorer\Quick Launch\ |
<$COMMONSTARTMENU> | C:\Documents and Settings\All Users\Start Menu\ |
<$COMMONSTARTUP> | C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ |
<$COMMONTEMPLATES> | C:\Documents and Settings\All Users\Templates\ |
<$COMMONVIDEO> | C:\Documents and Settings\All Users\Documents\My Videos\ |
<$DESKTOP> | C:\Documents and Settings\Default User\Desktop\ |
<$FAVORITES> | C:\Documents and Settings\Default User\Favorites\ |
<$FIXEDDRIVES> | C: D: E: (after tools.dll 2.1.6) |
<$FONTS> | C:\WINDOWS\Fonts\ |
<$LOCALAPPDATA> | C:\Documents and Settings\Default User\Local Settings\Application Data\ |
<$LOCALSETTINGS> | C:\Documents and Settings\LocalService\Local Settings\ |
<$MYMUSIC> | D:\My Documents\My Music\ |
<$MYVIDEO> | D:\My Documents\My Videos\ |
<$NETHOOD> | C:\Documents and Settings\Dummy\NetHood\ |
<$PATH> | D:\My Documents\Borland Studio Projects\Bpl\ |
<$PERSONAL> | C:\Documents and Settings\Default User\My Documents\ |
<$PRINTHOOD> | C:\Documents and Settings\Dummy\PrintHood\ |
<$PROFILE> | C:\Documents and Settings\Default User\ |
<$PROFILES> | C:\Documents and Settings\ |
<$PROGRAMFILES> | C:\Program Files (x86)\ |
<$PROGRAMS> | C:\Documents and Settings\Default User\Start Menu\Programs\ |
<$QUICKLAUNCH> | C:\Documents and Settings\Dummy\Application Data\Microsoft\Internet Explorer\Quick Launch\ |
<$RECENT> | C:\Documents and Settings\Dummy\Recent\ |
<$SENDTO> | C:\Documents and Settings\Dummy\SendTo\ |
<$STARTMENU> | C:\Documents and Settings\Default User\Start Menu\ |
<$STARTUP> | C:\Documents and Settings\Default User\Start Menu\Programs\Startup\ |
<$SYSDIR> | C:\WINDOWS\system32\ |
<$SYSDRIVE> | C:\ |
<$TEMPLATES> | C:\Documents and Settings\Default User\Templates\ |
<$WINDIR> | C:\WINDOWS\ |
References
- MSDN list of CSIDLs, to which path templates are mostly mapped to.