Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: .bat files  (Read 3711 times)

0 Members and 1 Guest are viewing this topic.

sjunod

    Topic Starter


    Newbie

    .bat files
    « on: July 22, 2008, 12:44:13 PM »
    I want to start a .bat file (#1) that will change directory (CD) then start another .bat file (#2).  then when that .bat file completes, start another .bat file (#3) from the first .bat file.  so:

    cd c:\dir1\subdir1
    StartBat1.bat
    StartBat2.bat

    both the 2nd and 3rd .bat files are located in the  c:\dir1\subdir1  folder

    is this doable?

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: .bat files
    « Reply #1 on: July 22, 2008, 01:06:07 PM »
    Code: [Select]
    cd c:\dir1\subdir1
    call Bat1.bat
    call Bat2.bat

    Using start the way you posted, would have both bat1 and bat2 running simultaneously. Using the call command, bat1 will finish before bat2 starts up.

    Good luck.  8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    sjunod

      Topic Starter


      Newbie

      Re: .bat files
      « Reply #2 on: July 22, 2008, 01:38:07 PM »
      yep, that did it.  thanks!