Page 1 of 1

Batch file

Posted: Sun Dec 05, 2004 9:58 pm
by rich_m
I've just read about creating batch files and would like to know if it is possible to create a batch file which loads 2 programs i.e. 2 exes simultaneously.
i tried to create one with the following:
An example

Code: Select all

@echo off
call C:\ab.exe
call D:\hi.exe
the above opens ab.exe and only after it(ab.exe) is terminated, does hi.exe open.

Re:Batch file

Posted: Mon Dec 06, 2004 1:48 am
by Solar
DOS is a single-tasking environment. And as batch files are run in the DOS environment, you can't multi-task there. No parallel execution, sorry. (AFAIK, I stopped working DOS some time ago.)

Re:Batch file

Posted: Mon Dec 06, 2004 2:07 am
by Candy
If you are actually running a dos-box in windows you can use the windows-program "start.exe" to start the programs, after which you will be back in your dos-box to start another. This would work, yet you'd have to have Windows to make it run.

Re:Batch file

Posted: Mon Dec 06, 2004 3:11 am
by rich_m (out)
you can use the windows-program "start.exe" to start the programs
How do i use it? ???

Re:Batch file

Posted: Mon Dec 06, 2004 6:39 am
by distantvoices

Code: Select all

start [your_program]