Environment Variables in ThinManager
Note: Windows per-user environment variables for initial applications are only valid in Windows Server 2003 and older operating systems.
Using Environment Variables in ThinManager
System environment variables can be used in the Application Link path name. For example, you can substitute %WINDIR% for the explicit path of the Windows folder (such as C:\Windows) (Windows environment variables) or #TERMINALNAME# for the terminal's name (such as HMI01) (ThinManager environment variables). Starting with Server 2008, you cannot use Microsoft Windows per-user environment variables.
The above Display Client, when running on a terminal named HMI01, will launch Notepad with the document stored at C:\docs\HMI01.txt
ThinManager Specific Environment Variables
ThinManager specific environment variables was introduced in the initial release of ThinManager 8.0.
|Environment Variable||Evaluates To||Minimum ThinManager Version|
|#TERMINALNAME#||Name of the terminal||8.0|
|#MODEL#||Model of the terminal||8.0|
|#WINDOWUSERNAME#||Windows username for Display Client||8.0|
|#TERMSECUREUSERNAME#||TermSecure username for the logged in user||8.0|
|#DISPLAYCLIENTNAME#||Display Client name||8.0|
|#LOCATIONNAME#||Relevance Location name||8.0|
|#TERMINAL_IPADDRESS#||IP Address of the terminal||11.1 SP1|
|#TERMINAL_MACADDRESS#||MAC Address of the terminal||11.1 SP1|
Custom ThinManager environment variables were introduced in the initial release of ThinManager 8.1.
Users may now define their own custom variables for Terminals, TermSecure Users, and Relevance Locations. These environment variables can be used the same way as the above ThinManager specific environment variables and also may be accessed through the TermMon ActiveX Control. The value of the variable can either be shown or hidden.
For example, using #VISIBLE# in a Display Client path will cause ThinManager to substitute "Value" into the path. C:/#VISIBLE#.txt will result in C:/Value.txt.