Click to See Complete Forum and Search --> : Is it possible to launch several programs at a time in Windows XP?


Qualitier
02-03-2004, 02:33 PM
I mean to launch them with a single command. In Windows 9x it is as simple as writing the commands in a .bat file and executing it, but in Windows XP batch files seem to invoke the commands one by one, hence I see the TV window, close it and see the sound filtering program, close it and see the Creative Mixer (that I launch to open the microphone input, usually closed, from where the sound card gets the sound from the TV card).

I am relatively expert with W9x but I'm a beginner with NT/2000/XP. I have been playing with CMD, /C, /K, &&, CALL and other commands and parameters but without success.

No fine Java tricks, no TCL, no hash tables or databases, just launching several programs in parallel in a multitask and multiprocess environment (winXP). How? Thanks in advance.

[typo edited]

muisejt
02-03-2004, 03:55 PM
add "start" in front of the program, for example instead of

notepad.exe
calc.exe
mspaint.exe

use

start notepad.exe
start calc.exe
start mspaint.exe

Qualitier
02-03-2004, 04:56 PM
Thanks very much. The START command worked. My problem's solved.

But it had to be in a way like this:


C:
cd "C:\Television and DVD\MoreTV"
start MoreTV.exe
cd "C:\Television and DVD\Perfect Audio"
start PerfectAudio.exe
rem The previous name of "PerfectAudio.exe" was "Perfect Audio.exe"
cd "C:\Program archives\Creative\SBLive\SurMix2"
start SurMix2.exe


START does not accept quoted parameters. The following code opens three "empty" instances of CMD:


start "C:\Television and DVD\MoreTV\MoreTV.exe"
start "C:\Television and DVD\Perfect Audio\Perfect Audio.exe"
start "C:\Program archives\Creative\SBLive\SurMix2\SurMix2.exe"


What a shoddy parser! Couldn't they parse the parameters in an uniform way for all commands? But don't belittle MS! The following was one of my previous attempts to get the three programs launched at a time (it runs them in sequence instead, but the nested quotes are correctly parsed):


cmd /c ""C:\Television and DVD\MoreTV\MoreTV.exe"&&"C:\Television and DVD\Perfect Audio\Perfect Audio.exe"&&"C:\Program archives\Creative\SBLive\SurMix2\SurMix2.exe""


Just a curiosity. Thanks again :) .