MSFN Forum: Batch file -- help - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch file -- help Rate Topic: -----

#1 User is offline   Lebanese_007 

  • Junior
  • Pip
  • Group: Members
  • Posts: 57
  • Joined: 14-September 03

Posted 22 August 2005 - 10:43 AM

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


#2 User is offline   Nazgul 

  • Junior
  • Pip
  • Group: Members
  • Posts: 86
  • Joined: 02-January 05

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
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy