Checks to see if a specified process exists.
ProcessExists ( "process" )
| process | The name or PID of the process to check. |
| Success: | Returns the PID of the process. |
| Failure: | Returns 0 if process does not exist. |
If ProcessExists("notepad.exe") Then
MsgBox(0, "Example", "Notepad is running.")
Else
MsgBox(0, "Example", "Notepad is not running.")
EndIf