Running multiple bat files

May 10, 2009 at 20:18:04
Specs: Windows XP
How can I run multiple bat files with one bat file? I tried lising them, but only the first will execute. I tried seperating them with a comma and semi-colon but neither works.

Thanks


See More: Running multiple bat files

Report •


#1
May 10, 2009 at 20:41:03
Do you mean to run the scripts consecutively or run them concurrently?

Did you use the CALL command? Is any script dependent on the output of prior scripts?

Please post your script.


Report •

#2
May 12, 2009 at 19:29:41
They are not dependant on one another, they can run concurrently or consecutively. I have 6 scripts that check for specific text files for the current date and if any are not there I will get alerted. So I thought I could just created a bat file like:

a.bat
b.bat


Report •

#3
May 12, 2009 at 19:44:20
Try this, it should open the files in their own windows:

start a.bat
start b.bat
start c.bat
etc.....


Report •

Related Solutions

#4
May 12, 2009 at 20:14:38
works like a charm!! Thank you :-)

Report •

#5
May 13, 2009 at 00:51:43
Thanks for coming back to report your success, it's nice to know the eventual outcome.

V.


Report •

#6
May 17, 2009 at 21:20:57
Hi,
Although I originally said that the bat files could run simultaneously, it turn out they cannot as each bat file maps to that specific drive/folder. so if they all run at once I get the error:
C:\test1>net use Z: /d
Z: was deleted successfully.
C:\test1>net use Z: \\imgwis1\iadata
System error 85 has occurred.
The local device name is already in use.

This is what I have in each seperate bat file to map. net use Z: /d
net use Z: \\imgwis1\iadata
Z:
cd Z:\appo


Any suggestions? From what I understand it is good to delete and remap the drive. Is there a way to only do this with the first bat file?

Thanks


Report •

#7
May 18, 2009 at 07:10:15
If your bats are: one two three

for %%b in (one two three) do %%b


=====================================
If at first you don't succeed, you're about average.

M2


Report •


Ask Question