How to automate sorting files into subdirectories?
January 31, 2008 10:49 AM
Subscribe
I have a large zipped MP3+G collection of about 30,000 songs split into several directories and subdirectories. I have them named by "Disc-Track - Artist - Title".
for example...
SC7501-01 - Presley, Elvis - An American Trilogy
SC7501-02 - Presley, Elvis - Devil In Disguise
SC7501-03 - Presley, Elvis - Burning Love
Although I have some that are named by "Disc-Volume-Track - Artist - Title".
CB5012-01-01 - Stray Cats, The - Rock This Town
CB5012-01-02 - Looking Glass - Brandy
etc...
I'm hoping to automate the following: Within a directory (and all subdirectories) Create a subdirectory for files of the same disc (or disc-volume), and move the files for that disc into that subdirectory. Repeat until every file is moved into the proper subdirectory.
I'm using Windows XP.
posted by fanboy65 to computers & internet (9 comments total)
1 user marked this as a favorite
I'm using javascript in an .hta application. ActivexObject(Scripting.FileSystemObject) will help you with the navigation of the existing directories, the creation of new ones and moving the files.
If you'd like to take a look at my (not 100% working) script, I'd be happy to share it with you.
posted by syzygy at 10:58 AM on January 31, 2008