HI all, i'm trying to write a batch file that does an if statement and loop in the same time.
one of our system sometimes get hosed, so in order to fix it, i need to kill some processes, we have an application that has several processes with the same name, it is called extras.exe, sometimes it has 9 processes, sometimes are 12.
My question is how can i write a batch file that checks for those processes, keeps killing those processes until there is no process anymore, becuase if i tell it to kill 9 processes and there were 10, 1 process will stay there, if i tell it to kill 12 and there were 10, it will freeze up.
thanks for your help
Page 1 of 1
Batch file -- help
#2
Posted 22 August 2005 - 01:22 PM
Couldn't you just do a taskkill /IM extras.exe, which will kill all running processes with the name of extras.exe?
Share this topic:
Page 1 of 1



Help
Back to top








