Substitution strings and variable replacements

Use substitution strings and environment variables to automatically populate fields in the System Tray Application. This helps you avoid manually entering unique details (such as client names, device IDs, or file paths) for each user or device.

Substitution strings

Use substitution strings to automatically populate fields in the System Tray Application, such as the Email Subject line and Hyperlink menu options.

Available substitution strings:

  • #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

Use these variables to reference system-level file paths and user-specific directories.

Supported variables (from Windows Environment Variables):

%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

You can manually add the following variable if needed:
LOCALAPPDATA = %USERPROFILE%\Local Settings\Application Data


Related topics