With Javascript? I don't really know if it's powerful enough to do that. Perl could do it easily by having a simple function to recurse over an entire folder or something. But that means installing Perl, not to mention knowing how to script using it, which I can't