Promotic

WinEnviromentWrite - method of the Pm object

Description:
Writing into the environment variable.
Syntax:
Empty WinEnviromentWrite(String sName, String sValue)
Parameters:
sName(String) Environment variable name (case insensitive text). Existing variable is changed otherwise a new variable is created.
sValue(String) Value to write.
Note:
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 command.

This method is not functional in Web panels.
See also:
Example:
Writing the path to the application (see the Pm.DiscGetPath method) into the environment variable APP_PATH:
JavaScriptVBScriptSelect and copy to clipboard

Pm.WinEnviromentWrite("APP_PATH", Pm.DiscGetPath("app:"));
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
- WinEnviromentWrite
 
 
© MICROSYS, spol. s r.o.