- Joined
- Oct 19, 2004
- Location
- Smoky Mountains, NC
Hello, I am trying to run a few of my programs using a Batch file. I would like a file to load Napster.exe, then have a delay for 25 seconds after which it would load firefox.exe and WoW.exe.
From searching some and what I knew before(Have not made a batch since last time I posted here about this haha) I came up with a few things to try.
The problem with this one is only Napster will load based on shortcuts. I can put the .bat in the Firefox folder which makes both Firefox and Napster load fine, WoW however dosn't of course. The Error that pops up is "unable to find (Filename)"
@ECHO OF
start WoW.exe
start Napster.exe
start Firefox.exe
cls
This one loads the first request fine no matter the order, though the other two commands never go through.
@ECHO OFF
"C:\Program Files\World Of Warcraft\WoW.exe"
"C:\Program Files\Napster\Napster.exe"
"C:\Program Files\Mozilla Firefox\firefox.exe"
Same as first one though the /MIN replaces what I would need a delay for.
@ECHO OF
start /MIN WoW.exe
start /MIN Firefox.exe
start Napster.exe
cls
From googling I found
TYPE NUL | CHOICE.COM /N /CY /TY,5 >NUL
As the command to delay the batch file. So I tried
@ECHO OF
start Napster.exe
TYPE NUL | CHOICE.COM /N /CY /TY,25 >NUL
start WoW.exe
start Firefox.exe
cls
Of course just as everything else this also did not work. This is mainly for learning as I could easily just copy the Mozilla files into the WoW folder and have it load, or create a real program to do this. Batch files though seem interesting to me so I would like to learn how to properly do basic commands like this with them. Thanks
From searching some and what I knew before(Have not made a batch since last time I posted here about this haha) I came up with a few things to try.
The problem with this one is only Napster will load based on shortcuts. I can put the .bat in the Firefox folder which makes both Firefox and Napster load fine, WoW however dosn't of course. The Error that pops up is "unable to find (Filename)"
@ECHO OF
start WoW.exe
start Napster.exe
start Firefox.exe
cls
This one loads the first request fine no matter the order, though the other two commands never go through.
@ECHO OFF
"C:\Program Files\World Of Warcraft\WoW.exe"
"C:\Program Files\Napster\Napster.exe"
"C:\Program Files\Mozilla Firefox\firefox.exe"
Same as first one though the /MIN replaces what I would need a delay for.
@ECHO OF
start /MIN WoW.exe
start /MIN Firefox.exe
start Napster.exe
cls
From googling I found
TYPE NUL | CHOICE.COM /N /CY /TY,5 >NUL
As the command to delay the batch file. So I tried
@ECHO OF
start Napster.exe
TYPE NUL | CHOICE.COM /N /CY /TY,25 >NUL
start WoW.exe
start Firefox.exe
cls
Of course just as everything else this also did not work. This is mainly for learning as I could easily just copy the Mozilla files into the WoW folder and have it load, or create a real program to do this. Batch files though seem interesting to me so I would like to learn how to properly do basic commands like this with them. Thanks
Last edited: