Link to home
Start Free TrialLog in
Avatar of DonKwizote
DonKwizoteFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Using a batch file to run 2 commands in order

Hello,
I want to create a batch file that runs 2 executable files but one command has to complete before running the other. All I have is the locations of the two executable files. What other commands to I need to ensure the batch file runs the first command and completes it, then runs the second command
Avatar of dipopo
dipopo
Flag of United Kingdom of Great Britain and Northern Ireland image

Use the batch call function

Call abc.bat

call xyz.bat

xyz will NOT execute before abc
Have a llok here for explanation.

http://www.computerhope.com/call.htm#03
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bill Prew
Bill Prew

The CALL statement is only used to call another BAT file from an initial BAT file, not EXE files.  For that we need the START command.

~bp
Avatar of DonKwizote

ASKER

Thank you. It worked perfectly
Welcome.

~bp