Home / Microsoft / Microsoft DOS / Simple Batch File Help.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Simple Batch File Help.  (Read 1954 times)
zviper
Topic Starter
Starter



Posts: 4


« 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
IP logged
blastman
Hopeful



Posts: 303


« Reply #1 on: March 07, 2008, 04:18:01 AM »

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................
 ;)
IP logged


Blastman, you are the man. Thank You Very Much!!!!!!!!!


Dias de verano
Guest
« Reply #2 on: March 07, 2008, 04:47:47 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




IP logged
zviper
Topic Starter
Starter



Posts: 4


« Reply #3 on: March 07, 2008, 10:32:11 AM »

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 ?
IP logged
blastman
Hopeful



Posts: 303


« Reply #4 on: March 07, 2008, 10:42:01 AM »

try it and find out.......
IP logged


Blastman, you are the man. Thank You Very Much!!!!!!!!!


zviper
Topic Starter
Starter



Posts: 4


« Reply #5 on: March 07, 2008, 11:17:44 AM »

i dont know anything about dos.... :(
IP logged
Dias de verano
Guest
« Reply #6 on: March 07, 2008, 11:19:04 AM »

i dont know anything about dos.... :(

Well, it's up to you to change that.
IP logged
zviper
Topic Starter
Starter



Posts: 4


« Reply #7 on: March 07, 2008, 01:18:56 PM »

I'm asking for some help to make a simple batch file, the least you could do is point me to the right info
IP logged
Dias de verano
Guest
« Reply #8 on: March 07, 2008, 01:28:53 PM »

You 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?


« Last Edit: March 07, 2008, 01:43:23 PM by Dias de verano » IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Simple Batch File Help. « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.107 seconds with 20 queries.