VBScript directory crawler






4.50/5 (5 votes)
May 17, 2000

128169

2396
A VBScript program that can recursively walk directories and also create a true working tree (good for printouts)
This VBScript can be used in a number of ways. At its heart, it's a simple directory tree walker. I wrote it originally as a DevStudio macro to clear out all the big leftover files in the debug and release folders. I added a bit of code to it on a whim to make it to indent the subfolders and add the various lines so that in the end it looks similar to the left hand frame of explorer. This can then be piped to a file and printed (have you ever wanted to print out a directory tree? I know I have.)
I have commented where you could put code to do things like clear out temp files, whatever.
Enjoy :)