Batch file

Programming, for all ages and all languages.
Post Reply
rich_m

Batch file

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Batch file

Post 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.)
Every good solution is obvious once you've found it.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Batch file

Post 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.
rich_m (out)

Re:Batch file

Post by rich_m (out) »

you can use the windows-program "start.exe" to start the programs
How do i use it? ???
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Batch file

Post by distantvoices »

Code: Select all

start [your_program]
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Post Reply