Jump to content

Batch file -- help


Recommended Posts

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

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

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...