Create mix CDs from MP3 files

Posted by Dave Jarvis on Super User See other posts from Super User or by Dave Jarvis
Published on 2010-02-09T17:43:08Z Indexed on 2010/03/21 21:51 UTC
Read the original article Hit count: 489

Filed under:
|
|
|
|

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:

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?

© Super User or respective owner

Related posts about cmd

Related posts about batch