Terminates a named process.
ProcessClose "process"
Parameters
process | The title or PID of the process to terminate. |
Return Value
None. (Returns 1 regardless of success/failure.)
Remarks
Process names are executables without the full path, e.g., "notepad.exe" or "winword.exe"
Related
ProcessExists, ProcessWait, ProcessWaitClose, Run, WinClose
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
oAutoIt.ProcessClose "notepad.exe"
PID = oAutoIt.ProcessExists("notepad.exe")
oAutoIt.ProcessClose(PID)