Batch files, scripts, etc? -- very simple request

elzmaddy

Senior member
Oct 29, 2002
479
0
0
Is there any way I can make a batch file or some vb script or anything that will start in Windows XP and start two executables at the same time (for example, prog1.exe and prog2.exe). I have tried a batch file, but prog2.exe will not load until after I close prog1.exe. I don't want to do that, I want to have both of them running, and have the cmd window dissapear after they are loaded.

I have tried these variations with the same undesired results:

prog1.exe
prog2.exe

start /w prog1.exe
start /w prog2.exe

call prog1.exe
call prog2.exe

Any ideas? It's such a simple request, but I'm stumped, so I'm using two shortcuts for the time being.
 

Noid

Platinum Member
Sep 20, 2000
2,390
193
106
Ummm ,,, the only way I can think of is 'Submitting them to batch'

But ,,, I dont know of any way to do that on the PC platform.

Did you try using Task manager/ scheduler to start the each of the programs at a specified time?

Only problem with that is you have to change times to re-start them.
 

elzmaddy

Senior member
Oct 29, 2002
479
0
0
I just want two programs to start simultaneously when I click something. I don't know why this is so hard.
 

Lint21

Senior member
Oct 9, 1999
508
0
0
The /w switch is "wait" right? Try omitting that with the start command. Should be a simple batch file.
 

elzmaddy

Senior member
Oct 29, 2002
479
0
0
That was a good guess but, unfortunately, all that did was open up two command prompt windows.
 

Sid59

Lifer
Sep 2, 2002
11,879
3
81
here's what i got for mine to open hot popper and thunderbird .. jsut replace syntax as needed.

START "hotpop" /d"f:\Program Files\Hotmail Popper" hotpop.exe
START "T-BIRD" /d"F:\Program Files\thunderbird" thunderbird.exe

as you can see ...

CMD "anytitle" /d"PATH TO FOLDER" ***.exe
 

elzmaddy

Senior member
Oct 29, 2002
479
0
0
here's what i got for mine to open hot popper and thunderbird .. jsut replace syntax as needed.

START "hotpop" /d"f:\Program Files\Hotmail Popper" hotpop.exe
START "T-BIRD" /d"F:\Program Files\thunderbird" thunderbird.exe

as you can see ...

CMD "anytitle" /d"PATH TO FOLDER" ***.exe
Works great! Apparently i did'nt have the quotes right -- the filename is not in quotes. Also when you don't need to specify the path, PrincessGuard's example works great. I'll make sure to permanently remember this. Thanks a bunch!
 

Sid59

Lifer
Sep 2, 2002
11,879
3
81
Originally posted by: elzmaddy
here's what i got for mine to open hot popper and thunderbird .. jsut replace syntax as needed.

START "hotpop" /d"f:\Program Files\Hotmail Popper" hotpop.exe
START "T-BIRD" /d"F:\Program Files\thunderbird" thunderbird.exe

as you can see ...

CMD "anytitle" /d"PATH TO FOLDER" ***.exe
Works great! Apparently i did'nt have the quotes right -- the filename is not in quotes. Also when you don't need to specify the path, PrincessGuard's example works great. I'll make sure to permanently remember this. Thanks a bunch!

i just followed the exampled on the website. Cheers!
 

Noid

Platinum Member
Sep 20, 2000
2,390
193
106
Sid59 ,, which website you speaking of...?

... and ... thanks from me also,,, I took notes also :p
 

Sid59

Lifer
Sep 2, 2002
11,879
3
81
Originally posted by: Noid
Sid59 ,, which website you speaking of...?

... and ... thanks from me also,,, I took notes also :p

microsoft's website. dunno the specific url but i snooped around looking for the junk.