| The enviroment |
|---|
|
Window.GetEnvironmentVariable("Name"): Window.SetEnvironmentVariable("Name","Value"): The GetEnvironmentVariable function retrieves the value of the specified variable from the environment block of the calling process. The SetEnvironmentVariable function sets the value of an environment variable for the current process. Here's an example:// File: environment.w_js (JScript) Window.width = 40 * Window.cxChar; Window.height = 20 * Window.cyChar; var PATH = Window.GetEnvironmentVariable("PaTh"); Window.AddControl(800,5,0,0,120,160,PATH); Window.SetEnvironmentVariable("REMARK","TRURL"); |
| The new scripting host. It is not wscript.exe! |