暫停腳本的執(zhí)行直至給定進(jìn)程不再存在為止。
ProcessWaitClose ( "進(jìn)程名" [, 超時(shí)時(shí)間] )
參數(shù)
| 進(jìn)程名 | 目標(biāo)進(jìn)程的名稱或 PID(進(jìn)程標(biāo)識(shí)符)。 |
| 超時(shí)時(shí)間 | [可選參數(shù)] 指定要等待的時(shí)間長(zhǎng)度(默認(rèn)為一直等待)。 |
返回值
成功: 返回值為1。
注意
進(jìn)程名是指可執(zhí)行文件的名稱(無需給出完整路徑),例如:"notepad.exe" 或 "winword.exe"
相關(guān)
ProcessClose, ProcessExists, ProcessWaitClose, RunWait, WinWaitClose
示例
;waits until no instance of notepad.exe exists
ProcessWaitClose("notepad.exe")
; This will wait until this particular instance of notepad has exited
$PID = Run("notepad.exe")
ProcessWaitClose($PID)
西畴县| 西乡县| 清原| 绩溪县| 封丘县| 万宁市| 会理县| 舞阳县| 华安县| 梅河口市| 克东县| 宁明县| 松阳县| 原阳县| 德阳市| 平凉市| 南汇区| 梧州市| 林芝县| 云南省| 泸水县| 马公市| 丹东市| 班玛县| 陵川县| 磐石市| 奉化市| 烟台市| 江山市| 浑源县| 呼玛县| 囊谦县| 四会市| 龙口市| 青龙| 孝感市| 琼海市| 大渡口区| 灵武市| 天津市| 盐源县|