WinEnviromentRead - method of the Pm object
Reading of environment variable.
String WinEnviromentRead(String sName)
|sName||(String) Name of environment variable (case insensitive text).|
The copy of environmental variables holds every Windows
process. The basic set of variables is created after starting the Windows
process, namely either the basic variables (e.g. computer name, procesor type, operating system, etc.), or the variables configured by the user (in the Windows OS
setting the variables with the values for the computer and the user can be defined).
The basic set of environmental variables can be displayed from the command line by the Set
This method is not
functional in Web panels
Detects the computer name by reading the value of the environmental variable COMPUTERNAME:
var sCompName = Pm.WinEnviromentRead("COMPUTERNAME");
sCompName = Pm.WinEnviromentRead("COMPUTERNAME")