Substitution Strings and Local File Environmental Variable Replacements

Substitution Strings

Rather than create a unique email or hyperlink for each Client by manually entering the details for each one, you can use substitution strings to automatically populate the fields in the System Tray Application. For example, in the Email Subject line and Hyperlink menu options.

String Meaning
#DEVICE# Machine name
#DEVICEID# Unique device identification number
#SITE# Site name
#SITEID# Site identification number
#CLIENT# Client name
#CLIENTID# Client identification number
#CURRENT_USER# Username of currently logged on user

Local File Environmental Variable Replacements

Supported Variable Variable content
%ALLUSERSPROFILE% C:\ProgramData
%APPDATA% C:\Users\{username}\AppData\Roaming
%CommonProgramFiles% C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files
%COMPUTERNAME% {computername}
%COMSPEC% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% \Users\{username}
%LOCALAPPDATA%     C:\Users\{username}\AppData\Local
%LOGONSERVER% \\{domain_logon_server}
%PATH% C:\Windows\System32\

C:\Windows\

C:\Windows\System32\Wbem

Plus program paths

%PATHEXT% .COM

.EXE

.BAT

.CMD

.VBS

.VBE

.JS

.WSF

.WSH

.MSC

%ProgramData% C:\ProgramData
%ProgramFiles% C:\Program Files
%ProgramFiles(x86)% C:\Program Files (x86)
%PROMPT% Code for current command prompt format, usually $P$G

C:>

%PSModulePath% %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%Public% C:\Users\Public
%SYSTEMDRIVE% C:
%SYSTEMROOT% C:\Windows
%TEMP% and %TMP% C:\Users\{Username}\AppData\Local\Temp
%USERDOMAIN% {userdomain}
%USERNAME% {username}
%USERPROFILE% %SystemDrive%\Users\{username}
%WINDIR% C:\Windows

From : Windows Environment Variables

* Manually add LOCALAPPDATA=%USERPROFILE%\Local Settings\Application Data