WScript properties
The following code demonstrates the various WScript object's properties and methods
On error Resume Next
' Suspend script execution for 1 second.
WScript.Sleep 1000
' Create a WshController object when you want to run scripts remotely.
WSHController = WScript.CreateObject("WScript.Controller")
' Create a WshNetwork object when you want to map to a network share.
WshNetwork = WScript.CreateObject("WScript.Network")
' Create a WshShell object
WshShell = WScript.CreateObject("WScript.Shell")
' Create an object that represents a running script (the variable scriptState is a WshScriptExec Object).
scriptState = WScript.Exec("myScript.WScript")
' Acquire a list of command line arguments (the variable objArgs is a WshArguments object).
objArgs = WScript.Arguments
' Echo the script mode.
WScript.Echo (WScript.Interactive)
' Output the IDispatch interface on the WScript object.
WScript.Echo WScript.Application
"..an understanding of Visual Basic would be advantageous although not to a programming level." - Job advert on Monster.com
Equivalent Windows command:
ECHO - Display message on screen