batch file help

Discussion in 'Tech' started by ivwshane, Apr 27, 2009.

  1. ivwshane We are all old school!

    Posts:
    6,635
    Trophy Points:
    63
    Location:
    Earth
    How would I create a batch file that does the following:

    Open program A
    Open program B
    Waits till program B is closed by the user and then closes program A
    Exits


    Neither program is a native windows program.
  2. ShabazKillaX I'm an F18 bro

    Posts:
    2,658
    Trophy Points:
    53
    Location:
    Tampa, FL
    To my knowledge you cannot do that in a batch file. Your probably going to have to use vbscript or something similar.
  3. tex jive turkey

    Posts:
    4,176
    Trophy Points:
    53
    Location:
    ATX
    thats _exactly_ what i was going to say. vbscript
  4. ivwshane We are all old school!

    Posts:
    6,635
    Trophy Points:
    63
    Location:
    Earth
    How hard is it to do in vb and what software do I need to do it with?
  5. ivanolo Junior Member

    Posts:
    4,868
    Trophy Points:
    53
  6. hans5849 Serious as a heart attack

    Posts:
    9,698
    Trophy Points:
    53
    Location:
    Jacksonville, FL
    This is what I use for autoinstalling some things on first run of XP

    Code:
    @echo off
    title Windows AutoInstaller
    
    ECHO.
    ECHO Over the next few minutes you will see automated installations 
    ECHO of various sofware applications, windows updates, and registry
    ECHO tweaks being implemented. The computer will restart automatically
    ECHO once the whole process has finished!
    ECHO
    ECHO Installing Windows Installer 
    ECHO Please wait...
    start /wait %systemdrive%\install\WindowsXP-KB942288-v3-x86.exe /passive /norestart
    ECHO
    ECHO Installing .NET Framework v1.1 SP1
    ECHO Please wait...
    start /wait %systemdrive%\install\0_dotNET11SP1.exe /ai
    ECHO
    ECHO Installing .NET Framework v3.5
    ECHO Please wait...
    start /wait %systemdrive%\install\dotnetfx35\wcu\dotNetFramework\dotNetFx35setup.exe /q:a /c:"setup.exe /q /norestart" /norestart
    ECHO
    ECHO Installing Windows Components
    ECHO Please wait...
    start /wait %windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:%systemdrive%\install\sysoc.inf /r /q 
    
    echo.
    pause
    exit