Home > Archive > General Discussion > August 2003 > Dos Batch commands





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dos Batch commands
exar07

2003-08-15, 12:56 pm

I havent made a ms dos batch file in a long time.

What can I do to make two executables run in a batch file?

Only one will open. What command or syntax can I do in the batch file to make one run and then the other one run?

Any suggestions? (Cant do two batch files for what I am trying to accomplish)
azimuth40

2003-08-15, 1:55 pm

unless you want a new copy of command.com to run simply list each exe on a separate line with a fully qualified file name.

..................
rem this is a batch file
rem this is the first exe

"c:\mydosfolder\something1.exe"

rem command line above is in quotes because rem of greater that 8 letter path segments

rem batch returns here after completion

c:\mydos\some2.com

rem no quotes needed above

command /c some2.exe

rem program above executed via a secondary
rem copy of command.com

exit:
..............

Remember if you are using NT/2K/XP that unless you specifically start a copy of command.com your program will be handled by cmd.exe which has some interaction differences.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net