|
Answer» Hey, quick QUESTION... I have been trying all sorts of code to make a batch to run multiple batches, and for some reason I just cant get it.
My goal is to make a batch run 3 other batches.
E.G. 1.bat will run 2.bat, 3.bat, 4.bat in order.
Can someone help me out here? I'd REALLY appreciate it. Use the "call" command. In batch #1, at the location you want #2 to start add:
Call [path]batch2.bat
When the Call Command is used, the first batch will pause until the called one finishes, then will resume. Repeat for the next 2 batch files. RickAlong the same lines, I too have a batch file that runs with I guess "nested batch files". I also have .vbs files too that run within this batch file.
For example, I have a batch file that runs several batch and vbs files. First I run a vbs script that creates a batch file with todays date. SECOND batch file runs an FTP program DOWNLOADING files locally, then disconnecting from the server. Lastly, the batch file created by the vbs script is ran renaming the downloaded file with todays date.
Problem. After the second batch file is ran, the third and final batch file never starts. I do have 'call' in the batch file. I think the FTP program, after I close the connection has something to do with it. But running the exit command in the FTP batch file closes the dos window.
Any suggestions or comments?
|