![]() |
|
[Shell] Music Shuffle - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Shell] Music Shuffle (/showthread.php?tid=1428355) |
Music Shuffle - White Light - Jun 28, 2011 I saw another thread about music, so I decided to whip up some code that somebody might appreciate...as a learning tool, it's practically useless otherwise lol. Code @echo offIf you put that in a folder with all your music (even in sub-folders), it will find all of the mp3 and wav files (easily changeable) and add them to a list. Then it takes a random file from the list (avoiding repeating the song) and plays it. It will wait for the file to finish playing, where it then repeats the process. This should work on Vista, and probably on 7 as well. I know it works on XP, but if it doesn't work on your OS then you can always look at the code and see how it works. * - Dezzz - Jun 29, 2011 This is pretty cool. I might use this for something later on. * - White Light - Dec 6, 2013 You know what makes me sad? The fact that this thread got only ONE reply. I think this can be a great learning tool for anyone wanting to learn about subroutines and for loops. * - ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ - Dec 7, 2013 Wanna know what makes me sad? The fact that your program doesn't work for me because I don't have Mplay32. :( * - Johnny Cache - Dec 7, 2013 (Dec 7, 2013 12:34 AM)Icarus Lives Wrote: Wanna know what makes me sad? The fact that your program doesn't work for me because I don't have Mplay32. :( Yeah but mplay is pretty easy to get, this is a nice example for usage, thanks White Light. * - Sajuuk - Dec 7, 2013 (Dec 6, 2013 11:12 PM)White Light Wrote: You know what makes me sad? The fact that this thread got only ONE reply. I think this can be a great learning tool for anyone wanting to learn about subroutines and for loops. You just gravedug, but in a good way. People need to see this. |