NightWatchman scripting properties
NightWatchman scripting properties
Property | Notes |
|---|---|
LogFileName |
Inputs
Returns
ExampleTo set the location of the NightWatchman log file for the current script to NwmScript.LogFileName = "C:\\TEMP\\nwm.log"; |
PowerdownAction |
Inputs
ReturnsThis property may return one of the following values:
ExampleTo run a conditional test to see if the power down action is standby: Set NwmScript =
WScript.CreateObject("NWMSCRIPT.NWMScriptHelperCtrl.2")
If NwmScript.PowerdownAction == 5
Then 'if powerdown action is standby 'Do SOMETHING
Else 'DO SOMETHING ELSE
End If |
TimeoutSecs |
Inputs
Returns
ExampleTo set the timeout value to 10: NwmScript.TimeoutSecs = 10; |
debug |
Inputs
Returns
ExampleTo set no debug: NwmScript.debug = 0; To set parameter and results debugging information: NwmScript.debug = 1; To set the maximum amount of debugging: NwmScript.debug = 3; |