检查指定进程是否存在。
ProcessExists ( "进程名" )
参数
| 进程名 | 目标进程的名称或 PID(进程标识符)。 |
返回值
成功: 返回目标进程的 PID。
注意
进程名是指可执行文件的名称(无需给出完整路径),例如:"notepad.exe" 或 "winword.exe"
相关
ProcessClose, ProcessWait, ProcessWaitClose, WinExists
示例
If ProcessExists("notepad.exe") Then
MsgBox(0, "示例", "记事本运行中。")
EndIf