Windows Console Mp3 Player
104 views
You can play mp3 files in a terminal (aka console or command line) on Linux, and other POSIX systems. I’ve always liked this - adds a hacker feel to my music listening. Anyway, there is a port for one of the programs that lets you do this, known as “mpg123″, for Windows as well.
You can pick that up here: http://www.mpg123.de/download.shtml (or more specifically, http://www.mpg123.de/download/win32/mpg123-1.5.0-x86.zip).
Using this program (and my command line knowledge of Windows), I created a one-liner that will take a directory (recursively, or including subdirectories), and play random songs from it.
dir /b /s /a-d | find “mp3″ > list && mpg123 -z -@ list
Based on this, I made batch files for those of you who don’t want to deal with all of that console garbage above - one of them (play.bat) will play random songs from wherever you put it (recursively), and the other (playdir.bat) will accept an argument, i.e. (”playdir g:\mymusicfolder”). These assume that you put mpg123.exe in the root of your C drive - if you haven’t, you’ll need to edit them accordingly.
You can pick them up here on Infotaxis, just right click and select “Save As” to download.
http://infotaxis.net/files/play.bat
http://infotaxis.net/files/playdir.bat
Popularity: 5% [?]
Explore posts in the same categories: Uncategorized