View Single Post
Old 9th June 2006, 21:31   #7
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
Here's a simple solution for multiple Winamps from the commandline.

Launching Winamp
For the first copy:
Winamp /INIDIR="%appdata%\Winamp1" /CLASS="Winamp1"
For the second copy:
Winamp /INIDIR="%appdata%\Winamp2" /CLASS="Winamp2"

To play a file in an already open Winamp (note: this will launch Winamp, as above, if the particular copy is not open)
For the first copy:
Winamp /INIDIR="%appdata%\Winamp1" /CLASS="Winamp1" some.mp3
For the second copy:
Winamp /INIDIR="%appdata%\Winamp2" /CLASS="Winamp2" some.mp3

To enqueue a file in an already open Winamp (note: as above, this will launch if not already open)
For the first copy:
Winamp /INIDIR="%appdata%\Winamp1" /CLASS="Winamp1" /ADD some.mp3
For the second copy:
Winamp /INIDIR="%appdata%\Winamp2" /CLASS="Winamp2" /ADD some.mp3


The /INIDIR switch specifies where to store configuration files. I've just chosen a typical place, you can place it wherever.

The /CLASS switch uniquely identifies the instance of Winamp, so that you can play and enqueue files to one particular instance when multiple ones are open. You can use any names you want (limited to about 60 characters). note: using the /CLASS switch could potentially break some third party programs and plugins that communicate with Winamp.
Benski is offline