I'm using a very old solution by user Batya from the Russian forum:
Create a new *.vbs-file, copy this code
Code: Select all
Dim Winamp
Winamp = "C:\Program Files\Winamp\winamp.exe"
Set objArgs = WScript.Arguments
Set TempFile = CreateObject("Scripting.FileSystemObject").OpenTextFile(objArgs(0), 1)
Set WS = CreateObject("WScript.Shell")
if objArgs.Count > 1 then
Str = TempFile.ReadLine
if Right(Str,1) = "\" then
Str = Left(Str, Len(Str) - 1)
end if
WS.run chr(34) & Winamp & chr(34) & " " & chr(34) & Str & chr(34)
end if
Do While Not TempFile.AtEndOfStream
Str = TempFile.ReadLine
if Right(Str,1) = "\" then
Str = Left(Str, Len(Str) - 1)
end if
WS.run chr(34) & Winamp & chr(34) & " /add " & chr(34) & Str & chr(34)
Loop
to it and adjust the path to winamp. Drag&drop this file to your buttonbar. Press the right mouse button on the new button and choose Edit. If you want the button to ADD files & folders to the current playlist, then enter %L in the parameters field. If you want to REPLACE the current playlist with the selected files & folders, then enter %L and any
other parameter (it will be like %L , - WITH the comma!).
The button works for me in all the situations: winamp is playing something or not, opened or closed, any number of files and folders can be added at a time.