1.

Solve : Possible to check for other 'open' dos windows with a batch file??

Answer»

I'd like to run 2 batch files over 24 hour period. The batch files should finish in 2 hours and are separated by more then 6 hours. However, in the event that one stalls, I want to be able to exit any NEW batch files if a new batch starts when the other batch FILE is still running. My question: Is it possible to check for other open dos windows in a batch file and if so how?

Thanks
MCIf you are using a XP system then you COULD use the task commands.

EX:
tasklist /v
taskkill

here is a link to MS web page describing information on what you are LOOKING for.

Link : http://technet.microsoft.com/en-us/library/cc720110.aspxinstead of doing unnecessary steps of checking dos windows, why not rectify the problem on WHY your batch/program can stall?



Discussion

No Comment Found