Event that is fired when the remote script begins executing.
Parameters
-
object
-
WshRemote object.
Remarks
Example
| Copy Code |
---|
var WshController = new ActiveXObject("WSHController");
var RemoteProc = WshController.CreateScript("app.wsf", "remotemachine");
WScript.ConnectObject(RemoteProc, "RemoteProc_");
var Done = false;
RemoteProc.Execute();
while (!Done)
WScript.Sleep(100);
function RemoteProc_End()
{
WScript.Echo("The process has ended");
Done = true;
}
function RemoteProc_Error()
{
WScript.Echo("An error has occurred: " + RemoteProc.Error.Description);
Done = true;
}
function RemoteProc_Start()
{
WScript.Echo("The process has started");
} |
See Also