Lebanese_007 Posted August 22, 2005 Share Posted August 22, 2005 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 Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now