Hi Folks,
I'm looking for a way to detect if a program is running and if it is close it. It could be a programmatic close of the program or a force quit, whichever would be more reliable. If the program is not found to be running then I want to simply continue on with my script. Basically I want to make sure Outlook is closed before I start my process.
thanks in advance.
Probably asked a thousand times...
Moderators: Dorian (MJT support), JRL
Re: Probably asked a thousand times...
Code: Select all
Let>Looptimes=0
Label>CheckOutlook
ProcessExists>outlook.exe,vOutlookRes
If>vOutlookRes=True
KillProcess>outlook.exe
Add>LoopTimes,1
If>LoopTimes>10
MDL>Outlook is failing to close. Exiting script
Exit>0
EndIf
Wait>0.5
Goto>CheckOutlook
EndIf
Re: Probably asked a thousand times...
Thanks JRL, that was exactly what I needed. Can't wait to start diving deeper!