|
本帖最后由 IT百科 于 2023-8-6 00:41 编辑
添加进程名即可,chrome.exe这个进程一大堆,手动清理累死
终止某个进程. ProcessClose ( "进程")
要终止的进程的名称或 PID(进程标识符).
ProcessClose("chrome.exe")
- #include <MsgBoxConstants.au3>
- ;清理进程
- while ProcessExists("<span style="background-color: rgb(255, 255, 255);">chrome.exe</span>") ; Check if the Notepad process is running.
- ProcessClose("<span style="background-color: rgb(255, 255, 255);">chrome.exe</span>")
- WEnd
- MsgBox($MB_SYSTEMMODAL, "", "end")
复制代码- 示例/演示
- ProcessClose("notepad.exe")
- Local $PID = ProcessExists("notepad.exe") ; Will return the PID or 0 if the process isn't found.
- If $PID Then ProcessClose($PID)
复制代码
|
|