Checks to see if a specified process exists.
ProcessExists "process"
Parameters
process | The name or PID of the process to check. |
Return Value
Success: Returns the PID of the process.
Remarks
Process names are executables without the full path, e.g., "notepad.exe" or "winword.exe"
Related
ProcessClose, ProcessWait, ProcessWaitClose, WinExists
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
If ProcessExists("notepad.exe") Then
WScript.Echo "Notepad is running."
End If