Batch File Question

Discussion in 'Windows OS's' started by athomas, Nov 11, 2008.

  1. athomas

    athomas Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    I run 5 steam servers off of one box. All of the servers start with a batch file. My question is this: Is it possible to write one batch file to open all five batch files? If so, is it just...
    Code:
    start whatever.bat
    ...five times ... or something else?
     
  2. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    I think you can just add the paths to the other batch files.
     
  3. athomas

    athomas Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    so just do...

    start C:\blahblah\1.bat
    start C:\blahblah\2.bat

    so on and so on
     
  4. RHochstenbach

    RHochstenbach Administrator

    Likes Received:
    26
    Trophy Points:
    48
    You could do that, but there's a better way.

    Code:
    cd C:\blahbla
    start 1.bat
    start 2.bat
    
    At the first like you open the folder were the files are located, so the next lines only need to contain the file name :)
     

Share This Page