I have a helper script that will grab weblogs for a particular domain, if called by itself from the MS-DOS command line it works as intended, but I'd like to call another script to call this script multiple times for the multiple domains, but it's only running the first call to the script and exiting out.

Is there a way to include helper batch files and have them all run sequentially?

g:
cd g:\mydir        

rem collecting log files
getlogs.bat site1
getlogs.bat site2
getlogs.bat site3
getlogs.bat site4
getlogs.bat site5
getlogs.bat site6

:cool:

Recommended Answers

All 2 Replies

Change it to this:

call getlogs.bat site1
call getlogs.bat site2

Without the call it will exit after the first call

Thanks that did the trick!
Considered resolved!!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.