Old 10th March 2004, 00:55   #1
goodoldfriend
Junior Member
 
Join Date: Mar 2004
Posts: 3
command line arguments

I've searched for command line argument reference and noticed this link posted in several messages:

http://www.winamp.com/nsdn/winamp2x/dev/sdk/api.jhtml

but that link does not seem to work. I dl the sdk and it did not seem to have the api reference alluded to in the above link. Any help is appreciated as I am trying to do a couple of things via a batch call or maybe even scheduled task in winXP.

Any help is greatly appreciated.

Thanks.
goodoldfriend is offline   Reply With Quote
Old 10th March 2004, 02:25   #2
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
NSDN is being "renovated". I don't know if that link has moved or deleted. However the following is a copy (of the command line interface) from the link.
____________________________________________

Using the command line interface to control Winamp

The simplest, easiest, least powerful way of controlling Winamp is to execute winamp.exe yourself. By simply calling winamp.exe with various command line options, you do a number of things. For example:
C:\path\to\winamp\winamp.exe /ADD C:\mp3\whatever.mp3
(Adds C:\mp3\whatever.mp3 to the playlist of a running Winamp, if Winamp is running, otherwise it opens Winamp and plays it outright)

C:\path\to\winamp\winamp.exe /NEW
(Creates a new instance of Winamp, even if Winamp is already running)

C:\path\to\winamp\winamp.exe C:\mp3\file.mp3
(Plays the file C:\mp3\file.mp3, regardless of whether or not Winamp is open)

C:\path\to\winamp\winamp.exe /CLASS="myclassname"
(Opens Winamp with a different Window Class name "myclassname")

As you might notice, what you can actually do using the command line interface is pretty limited. It is really easy to get started with, though. You can also specify multiple files and or directories on the command line, such as:
C:\path\to\winamp\winamp.exe /NEW "C:\my mp3s\" "C:\bigplaylist.pls" "C:\download\new song.mp3"

____________________________________________


There is also /BOOKMARK - places a file in Winamp's bookmarks

example
C:\Program Files\Winamp\Winamp.exe /BOOKMARK C:\Media Files\Cool Sound.WAV

Also take a look at the plug-ins CLEveR or WACommand
JonnyMac is offline   Reply With Quote
Old 10th March 2004, 11:25   #3
goodoldfriend
Junior Member
 
Join Date: Mar 2004
Posts: 3
Thanks a ton

Thanks Johnny,

If you notice that the nsdn area is updated with this information and think of it, would you mind posting a reminder.

In any case, I appreciate your time and effort answering my query.

I actually found that once you know a few of the cl args that you can start and stop Winamp quite nicely using the XP schedule task control panel applet. I was wanting to start Winamp on a nice soothing stream to help me sleep and then stop after about an hour.

Also works nicely as an alarm clock with a "loud" station.

Thanks again.
goodoldfriend is offline   Reply With Quote
Old 10th March 2004, 14:16   #4
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
If the schedule task solution works for you, that is great. However, if you are interested, there are plug-ins for sleep or alarm type functions...
http://forums.winamp.com/showthread....hreadid=170185
JonnyMac is offline   Reply With Quote
Old 11th March 2004, 01:09   #5
goodoldfriend
Junior Member
 
Join Date: Mar 2004
Posts: 3
Thanks again JohnnyMac. Your time and efforts are appreciated. You've made this a very nice and useful forum for me even though I don't have a lot of time to "play" with the computers.
goodoldfriend is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump