Starts execution of a remote script object.
Parameters
- object
-
WshRemote Object
Remarks
Example
The following example demonstrates how the Execute method is used to create a WshRemote object (start an instance of a remote script).
JScript | Copy Code |
---|
var Controller = WScript.CreateObject("WSHController");
var RemoteScript = Controller.CreateScript("remote1.js");
RemoteScript.Execute();
while (RemoteScript.Status != 2) {
WScript.Sleep(100);
} |
See Also