Problem with .bat file.

Microsoft Outlook 2003 (full product)
July 8, 2010 at 02:03:03
Specs: Windows XP-PRO
I set up a little .BAT file to kick-off two programs...


start /d "C:\Program Files\dBpowerAMP Music Converter\Asset Control\" uPlayer.exe
start /d "C:\Program Files\dBpowerAMP Music Converter\Asset Control\" AssetControl.exe


...this works perfectly.


However, if I rename "AssetControl.exe" to "Asset Control.exe" and do this...


start /d "C:\Program Files\dBpowerAMP Music Converter\Asset Control\" uPlayer.exe
start /d "C:\Program Files\dBpowerAMP Music Converter\Asset Control\Asset Control.exe"


...it does not work. Instead of "Asset Control.exe" starting I get a message "The current directory is invalid".


The syntax is correct, yes ? So what's the problem ?


See More: Problem with .bat file.

Report •


#1
July 8, 2010 at 06:44:33
I don't know the "/d" switch, but if start is anything like it is in xp then "Start"
assumes that the first argument is a title, pass it an empty set.

try:

start /d "" "C:\Program Files\dBpowerAMP Music Converter\Asset Control\uPlayer.exe"


Also, be careful of where you pass your quotes, remember:

"c:\ontain\the\whole\path\including\the\executable\in\quotes.exe"


Report •

#2
July 8, 2010 at 06:54:26
Try to add a pair of double quotes after the start command, i.e.

start "" and then your command line.


Report •

#3
July 8, 2010 at 06:55:09
Ahh, just found the "/d" switch...

Try:


start "" /d "p:\ath" "executable"

Edit: I ninja'd Ivo and he ninja'd me! Hi Ivo!


Report •

Related Solutions

#4
July 8, 2010 at 07:21:04
Thanks for the clue on the double "
I finally got it working with...
CD "C:\Program Files\dBpowerAMP Music Converter\Asset Control"
start "" "uPlayer.exe"
start "" "Asset Control.exe"

Report •


Ask Question