Create mix CDs from MP3 files
- by Dave Jarvis
How would you write a script (preferably for the Windows commandline) that:
Examines thousands of MP3 files stored on a single drive (e.g., G:\)
Randomizes the collection
Populates a series of directories up to 650MB worth of songs (without exceeding 650MB)
Every song is shucked exactly once
(Optional) The directory size comes as close as possible to 650MB
The DIR, COPY, and XCOPY commands have no explicit file size switches.
A few Google searches have come up with:
File size condition in DOS
Cygwin and UWIN
DOS File sizes
It would be ideal if UNIX-like environments can be avoided.
My question, then: How do you compare file (or directory) sizes using the Windows commandline?