Skip to content

Instantly share code, notes, and snippets.

@ddhahn
Created February 3, 2013 01:12
Show Gist options
  • Save ddhahn/4700055 to your computer and use it in GitHub Desktop.
Save ddhahn/4700055 to your computer and use it in GitHub Desktop.
Kills all processes matching a name.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\Users\ddhahn\Downloads\scb.ico
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;Kill Outlooks script
$pid = processexists("outlook.exe")
while $pid <> 0
MsgBox(1,"Outlook Killed","Outlook.exe (" & $pid & ") has been killed")
ProcessClose($pid)
$pid = processexists("outlook.exe")
WEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment