How would you write a script (preferably for the Windows commandline) that:
- Examines thousands of MP3 files stored on a single drive (e.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
XCOPY commands have no explicit file size switches.
A few Google searches have come up with:
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?