|hello friends, i am hoping someone here can offer me some help.|
I have the following command.
tasklist /FI "IMAGENAME eq outlook.exe" /FO CSV > C:\temp\search.log
This creates a file called search.log in C:\temp.
Now I have this command that echos 1 if outlook is running and 0 if it isnt.
findstr "OUTLOOK" C:\temp\search.log | FIND /C "OUTLOOK"
basically if it echos 0 i want it to goto the end, something like this
If result of command is 0 goto end
else kill outlook
you see what i am getting at?
Any help would be much appreciated.