Just a quick mea culpa; I've learned a little more about Windows scripting lately, and you can actually do this kind of thing with a script in VBScript or JScript run through the Windows Scripting Host (WSH). You need to create a "Scripting.FileSystemObject";
var fs = new ActiveXObject("Scripting.FileSystemObject");
Then you can use fs to read and write the filesystem in various ways. There's more information available online; quite a bit at Microsoft's site in fact. Google for "JScript Administration" or something similar and you'll get useful results.