Questions? Comments? Email articles-randommusic [at] tucuxi [dot] org
Got one of those flash-based mp3 players with nowhere near enough space for your entire mp3 collection? Unix or windows geek? Then this script's for you. I got sick of having the same music, day in, day out, and decided to write a script to randomly pick music to put on. It's very beta, but it works well enough. No warranty and all that stuff.
It currently works on Linux; haven't tested it with Windows, but it should work - just specify your paths like this: C:/foo/bar/baz. You'll need the CLI PHP interpreter (as with most of my other scripts.. I prefer coding in PHP, even for CLI stuff).
Go into the script, and change these:
$root = '/where/your/mp3s/are/stored';$dest = '/where/your/usb/key/is/mounted';$size = 500 * 1024 * 1024- that's 500mb
Email me if you have any problems with it.