結(jié)束某個(gè)進(jìn)程。
ProcessClose ( "進(jìn)程名" )
參數(shù)
進(jìn)程名 | 要終止的進(jìn)程的名稱(chēng)或 PID(進(jìn)程標(biāo)識(shí)符)。 |
返回值
無(wú)(無(wú)論成功與否都返回 1)
注意
進(jìn)程名是指可執(zhí)行文件的名稱(chēng)(無(wú)需給出完整路徑),例如:"notepad.exe" 或 "winword.exe"
相關(guān)
ProcessExists, ProcessWait, ProcessWaitClose, Run, WinClose
示例
ProcessClose("notepad.exe")
$PID = ProcessExists("notepad.exe") ; 返回記事本程序的 PID,若未發(fā)現(xiàn)該進(jìn)程則返回值為 0。
If $PID Then ProcessClose($PID)