欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Windows 腳本宿主  

End 事件

該事件在遠程腳本完成時引發(fā)。

Object_end

參數(shù)

object
WshRemote 對象。

說明

End 事件在遠程腳本對象執(zhí)行完畢時引發(fā)。可以在遠程腳本對象正常終止、超時或是因發(fā)生錯誤而終止時引發(fā)。

示例

var WshController = new ActiveXObject("WSHController");
var RemoteProc = WshController.CreateScript("foo.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");
}

請參閱

WshController 對象 | WshRemote 對象 | Status 屬性 | Error 屬性 | Execute 方法 | Terminate 方法 | Start 事件 | Error 事件