Previous Topic

Next Topic

Symbolic path definitions

You can define symbolic paths leading to files, folders or applications using following guidelines:

There are a lot of variables, which can be used to specify local or network discs, system directory or the temp directory. Please look into table below for more information about the path variables.

There are two very useful variables to handle the application assignment to a group. Instead of adding an explicit specified executable (e.g. myapp.exe) you can use two variables:

  • %AllExecutablesInDir% - finds all executables in the directory
  • %AllExecutablesInSubTree%. - finds all executables in the directory and all subdirectories

Examples of their use include:

\\someserver\PublicApplications\%AllExecutablesInSubTree%
C:\SomeApp\%AllExecutablesInDir% 

%SystemRoot%\%AllExecutablesInDir%.

The table of used special commands / characters:

Name

Description

Note

%CdRoms%

CD ROM drive

 

%RemovableDrives%

Floppy disks

 

%Temp%

Directory recognized by OS as Temp directory. Typically C:\Temp

 

%SystemRoot%

C:\WinNT or C:\Windows or whichever windows installation directory used on target machine

 


%SystemDrive%

System drive, disk drive which contains the WindowÆs directory

 

%FixedDrives%

Local hard discs letters

 

%LanDisks%

All mapped network drives

 

%RecycleBin%

Recycle Bin

 

%PathFromShortcut%

Get path to file from its shortcut

Internally

%FreeAccessible%

Path to TPF free accessible folder.

Not used

%Confidential%

Path to TPF confidential folder.

Not used

%UserSpecific%

Path taken from the registry

Internally

%DirOnKeyValue%
%DirOnSubKeyValue% %DirOnKeyEnumValue%

These variables are automatically used in a dialog window. Used for getting path from registry

Internally

%Root%

Used to cutting the last n sub folders

Internally

%AllExecutablesInDir%
%AllExecutablesInSubTree%

Add executable files in chosen directory or in directory and all its subdirectories

 

Note: You can combine %DirOnSubKeyValue% with other relative paths leading to folders on target computer.

"\\" - is used everytime when you use relative reference to the value in given folder/destination (in other words - "give me whatever is there").

"\\\" - is used when you define absolute value - typically using the registry or relative paths (as defined above) you get the location of the folder and within this folder you specify using "\\\" the absolute value of consequent subfolders and/or the name of the file.

Example 1:

%DirOnSubKeyValue%\CURRENT_USER\Identities\\Software\Microsoft\Outlook Express\5.0\\Store Root

How to read Example 1:

The object is the value of 'Store Root' located in key 'Software\Microsoft\Outlook Express\5.0' which is located in unnamed subkey of 'HKEY_CURRENT_USER\Identities'.

Example 2:

%UserSpecific%\Application Data\\\Microsoft\Internet Explorer

How to read Example 2:

The object is the folder 'Internet Explorer', which is defined as subfolder of the folder 'Microsoft' which is located in the folder 'C:\Documents and Settings\<user logged on>\Application Data'

See Also

General Guidelines

Application groups

Resolved and Unresolved Format