1.

Solve : How to run multiple batch files from single batch?

Answer»

hi all,
is it possible to run multiple batch files from one batch files. I have tried it using call keyword before each batch files. But I need that those batch files should be exceuted one after the another in SINGLE command window. I know it sounds something which is impossible but u see there is nothing like impossible in DOS. There must be something that can serve my purpose.


regards
Nitin
As far as I know, the call keyword is exactly what you you should be using. PERHAPS if you posted your code it would be easier to debug. What results are you getting now? Do you want the batch files to run sequentially or simutaneously?

Get back to US. Have you ever tried using the start keyword? I believe it would start a new instance of DOS with the program executing inside this new instance, but I'm not sure that the parent (original batch file) would wait until the child (newly executed batch file) had finished. Must try it myself.If you want to use START, use the /WAIT switch. A new instance of DOS will only be created if you start a DOS PROCESS. Yes, the original batch file will wait. Unless you need a fresh environment for the started task, I fail to see the difference between the CALL and START /WAIT statements.

Batch files are fine for MS-DOS machines, but Windows Script comes with all versions of Windows (except 95A) and is a BETTER tool for any job.



Discussion

No Comment Found