Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Run multiple batch files?

I have several batch files that I want to run in succession, I would like to use 1 batch file to call the rest of them and execute each on in turn. I have tried using the start.....wait command but I must not have done it right. Basically I want a file to run:

batch1

batch2

batch3

How can I do this properly? Thanks!

3 Answers

Relevance
  • ?
    Lv 6
    1 decade ago
    Favorite Answer

    Look at the difference between the START and CALL commands.

  • 1 decade ago

    Heres a batch file which will work...

    @echo off

    call C:\batch1.bat

    cls

    call C:\batch2.bat

    cls

    call C:\batch3.bat

    exit

    Please note: If batch 1, 2, or 3 contain an "exit" command, this will close the file I have created above. To fix this, replace all "exit" commands in batches 1, 2, and 3 with "goto :EOF". This ends the script instead of closing the DOS window.

    Source(s): My head.
  • Anonymous
    5 years ago

    Why not just put all the files and folders in one directory, and make a batch file with the following in it: @echo off del 1st file del 2nd file del 1st folder del 2nd folder echo Your text here Of course, file and folder with the actual names.

Still have questions? Get your answers by asking now.