Solved winamp /ADD causes START to fail

Clone / X
February 26, 2015 at 22:51:19
Specs: XP SP3, AMD Ath 64X2 2GB
code:
START "C:\Program Files\Winamp\winamp.exe" /add abba.mp3

gives:
Invalid switch - "/add"

Without START the script hangs until winamp exits.

=====================

M2 Get custom script or take private lessons


See More: winamp /ADD causes START to fail

Report •


✔ Best Answer
February 28, 2015 at 14:56:58
Another reason to add empty double quotes whenever you use START.
START "" "C:\Program Files\Winamp\winamp.exe" /add abba.mp3

How To Ask Questions The Smart Way



#1
February 27, 2015 at 03:20:07
You cannot use the /add switch with the START command.
It's not a valid switch.

Valid switches to use with the START command are listed here:
https://www.microsoft.com/resources...

For your purposes, read the first paragraph under the "Remarks" heading:
"You can run nonexecutable files through their file association . . . . ."


Report •

#2
February 27, 2015 at 04:35:15
"You cannot use the /add switch with the START command."
You're right. But without it winamp won't ADD.
That's where we're stuck.

"You can run nonexecutable files through their file association by typing the name of the file as a command. "
Hard for me to think of winamp.exe as a nonexecutable.
But hey...

=====================

M2 Get custom script or take private lessons


Report •

#3
February 27, 2015 at 14:12:30
Most likely I'm missing the point here but if the file name is abba.mp3 wouldn't this work?:
"C:\Program Files\Winamp\winamp.exe" abba.mp3

EDIT:
I guess you are trying to do something with the winamp.exe command line, rather than just play the file.

Always pop back and let us know the outcome - thanks

message edited by Derek


Report •

Related Solutions

#4
February 27, 2015 at 21:32:51
H i Derek,

You're right. Twice.

With /ADD it gets ADDed to the queue. Without it, it plays.
And wipes out the existing queue.

=====================

M2 Get custom script or take private lessons


Report •

#5
February 28, 2015 at 14:56:58
✔ Best Answer
Another reason to add empty double quotes whenever you use START.
START "" "C:\Program Files\Winamp\winamp.exe" /add abba.mp3

How To Ask Questions The Smart Way


Report •

#6
February 28, 2015 at 15:07:08
Yes, with START what is between double quotes is seen as a "title". The two double quotes constitute a blank name.

Always pop back and let us know the outcome - thanks


Report •

#7
February 28, 2015 at 21:16:03
I figured if this was to get solved it would be R2 or IVO.

As usual, I was right.

Many thanks, R2.

=====================

M2 Get custom script or take private lessons


Report •


Ask Question