VBScript - Clean up music collection
Tagged as:cscript, Music, Programming, tools, vbs
I recently inherited a pretty large music collection, but I found that there were many small or useless (to me) files that were created by MacOS (specifically .DS_STORE and other meta data files). These were getting in my way, so I wanted to take them out.
So .. I wrote a vbscript to do just that. It comes complete with the ability to build you a report of files that will be deleted. It will walk through all subdirectories starting from wherever the vbs file is located and check every file in all of them.
Here’s the usage:
Usage: CScript remove_invalid_files.vbs [option]
Options:
/help Displays this help
/report Builds a simple report of files to be deleted
/delete Performs file deletion
Here’s a sample of the report output saved in a file: (filesize and path)
6148 F:\Sting\Exclusive\.DS_Store
82 F:\Sting\Exclusive\._.DS_Store
6148 F:\SUGARCULT\Los Angeles - Single of the Week\.DS_Store
When it’s all done, it gives you a quick summary:
Total: 210 files, 650.74KB
Download the source here.
