Old 16th September 2011, 14:16   #1
Junior Member
Join Date: Aug 2011
Posts: 16
Auto Play with Random Starting Song batch file

Ok I found this out some...lots of years ago (at least 10) with a non MMX version of Winamp...I added a 12v graphic equaliser to my pc in the 5.25''' bay hey instant music. I still have it running today a pentium pro 233 (well a 200 overclocked).


Sorry for not sharing this all those years ago.....

Create a batch file to run Winamp and have shuffle turned on.

My batch file in startup folder, or you can have lots of them.

"c:\Program Files\Winamp\Winamp.exe" /rem "C:\Documents and Settings\smokingwheels\Desktop\winamp.m3u"

note: the 3 full stops on the cd command...
note1: you can save your play list anywhere you like and have as many as you like just change the second half of the last line to point to it.
eg /rem "%userprofile%\My Documents\My Music\winamp.m3u"

When clicked or executed it starts Winamp, loads the play list and randomly starts a song on your play list. Much better than the profiler plugin which plays the first song in the list every time with autoplay enabled. rather annoying...

It works with Winamp version 2.64 x86 JUN 2000... hey on win98 se
also an earlier version of Winamp for non mmx processors...Pentium pro 233
And Winamp Pro version 5.621 x86 july 2011...Prob free version as well untested.
It will probably work on all other versions as well.
smokingwheels is offline   Reply With Quote
Old 7th October 2013, 21:44   #2
Junior Member
Join Date: May 2011
Posts: 3

@Echo OFF & chcp 1252 >NUL & Setlocal enabledelayedexpansion
REM Title %~n0 & Mode con cols=50 lines=3
Set /A "MAX=5"
Set "TMP_Playlist=%Temp%\Playlist.tmp"
Set "Playlist=%Temp%\Playlist.m3u8"
For /F "Tokens=*" %%$ in (
'Dir /B /S "%~dp0" ^| Findstr /I /R ".avi .mkv"'
) DO (
Echo !Random!!Random!!Random!;%%$

Echo #EXTm3u8
For /F "Tokens=2* Delims=;" %%$ in (
'Type "%TMP_Playlist%" ^| Sort '
) DO (
Set /A "Count+=1"
Echo %%$
) ELSE (
Goto :Run
Start /B "" "%PROGRAMFILES(X86)%\Winamp\winamp.exe" "%Playlist%" || (Exit /B 1)
Exit /B 0

Dsalomon is offline   Reply With Quote
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Discussion

autoplay, plugin, random songs, smokingwheels

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