终止某个进程.
ProcessClose ( "进程")
| 进程 | 要终止的进程的名称或 PID(进程标识符). |
| 成功: | 返回 1. |
| 失败: | 返回 0 并设置 @error 到: |
| 1 = 打开进程失败 | |
| 2 = AdjustTokenPrivileges 失败 | |
| 3 = 终止进程失败 | |
| 4 = 不能验证进程是否存在 |
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)