System variables
Some of the settings available in the console require specifying the path on the target computers.
It is advisable to use system variables (where appropriate) to make sure the path is valid on all target computers.
Here is the list of the predefined system variables:
%ALLUSERSPROFILE%
The All Users profile folder.
Typical path:
C:\Documents and Settings\All Users
%APPDATA%
The Application Data folder of the logged-in user.
Typical path:
Windows XP:
C:\Documents and Settings\{username}\Application Data
Windows Vista/7:
C:\Users\{username}\AppData\Roaming
%LOCALAPPDATA%
The temporary files of Applications.
Typical path:
C:\Users\{username}\AppData\Local
%PROGRAMFILES%
The Program Files folder. A typical path is C:\Program Files
.
%PROGRAMFILES(X86)%
The Program Files folder for 32-bit applications (on 64-bit systems).
Typical path:
C:\Program Files (x86)
%COMMONPROGRAMFILES%
The Common Files folder.
Typical path:
C:\Program Files\Common Files
%COMMONPROGRAMFILES(X86)%
The Common Files folder for 32-bit applications (on 64-bit systems).
Typical path:
C:\Program Files (x86)\Common Files
%WINDIR%
The Windows directory or SYSROOT. A typical path is C:\Windows
.
%USERPROFILE%
The path to the user's profile folder. Typical path:
Windows Vista and above:
C:\Users\{username}
Windows XP:
C:\Documents and Settings\{username}
On macOS, the user's profile folder corresponds to the Home folder. Use $HOME
or ~
when configuring exclusions.
%SYSTEMDRIVE%
The drive where the Windows directory was placed. The typical drive is C: