1.

Solve : Simple Batch File Help.?

Answer»

I want to load one program and have it wait for a confirmation to load the next program. i know absolutely nothing about dos at all

but here are my directorys i need them to be,
C:\pbsetup.EXE
E:\COD4\iw3mp.exe
I take it this is from win xp command prompt....


type 'start /?' and have a read. take specail attention to the /wait switch.

If you wanted to add errorlevel caputre to your BATCH, type 'if /?' at the command prompt.

You could do if /i %errorlevel% GTR 0 (goto fail) else goto next.


Just something to get you thinking................
 
Quote from: zviper on March 07, 2008, 01:59:11 AM

I want to load one program and have it wait for a confirmation to load the next program. i know absolutely nothing about dos at all

but here are my directorys i need them to be,
C:\pbsetup.exe
E:\COD4\iw3mp.exe


Did you mean you want the batch file to start pbsetup.exe and get the user to do some stuff and exit from that program (close it down) and then, and only then, start up iw3mp.exe?

If so you want to something like this

start /wait "" "C:\pbsetup.exe"

REM This line and the next 4 lines are optional
echo Finished PBSETUP
echo Ready to start IW3MP
echo Press a key when you are ready
PAUSE>nul

start /wait "" "E:\COD4\iw3mp.exe"

echo All finished




that kinda WORKED. its runs the first exe. then when it tries to run the second exe, my game errors out when i try and launch it.

is there a possibility that a SHORTCUT can be launched instead of the iw3mp.exe ?try it and find out.......i dont know anything about dos.... Quote from: zviper on March 07, 2008, 11:17:44 AM
i dont know anything about dos....

WELL, it's up to you to change that.
I'm asking for some help to make a simple batch file, the least you could do is point me to the right infoYou got the right info. A little suggestion: lose the attitude. If the batch file is that "simple", how come you haven't written it yourself already?




Discussion

No Comment Found