Hey everyone. I need help with something.
I have a batch file batch.bat that runs after a torrent finishes performing some standardized routines.
Sometimes it happens, while batch file is still running, that another torrent finishes and batch.bat is triggered again, messing everything up. What is want it to check if batch.bat is still running, then wait to finish and continue with the new instance of batch.bat
Can we do something like this?
Thanks for the help!!
batch file multiple instances
Moderator: DosItHelp
Re: batch file multiple instances
Since you've provided little information regarding your OS, paths etc., the least you could do is paste your existing batch file (between code tags) into your message!
Re: batch file multiple instances
Compo wrote:Since you've provided little information regarding your OS, paths etc., the least you could do is paste your existing batch file (between code tags) into your message!
Compo thanks for the reply. OS is Windows 8.1 and path is c:\batch.bat
I'm not at home now to post the code, but i don't think it matters what the batch actually does. I'm just wondering if it can wait until first instance finishes and then launch the second instance
-
- Expert
- Posts: 1163
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: batch file multiple instances
Are you using call or start to run your batch scripts? You should be using call.