Click here to Skip to main content
12,818,688 members (29,038 online)
Click here to Skip to main content
Add your own
alternative version


28 bookmarked
Posted 16 May 2000

VBScript directory crawler

, 16 May 2000
Rate this:
Please Sign up or sign in to vote.
A VBScript program that can recursively walk directories and also create a true working tree (good for printouts)
  • Download source files - 1 Kb

    Sample Image - walker.jpg

    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 :)

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    Ron Olson
    Web Developer
    United States United States
    No Biography provided

    You may also be interested in...

    Comments and Discussions

    PraiseWell ... it still works! Pin
    RedDk21-Oct-16 10:11
    memberRedDk21-Oct-16 10:11 
    GeneralDocument Properties help Pin
    Len Inkster26-Jul-05 9:40
    sussLen Inkster26-Jul-05 9:40 
    GeneralRe: Document Properties help Pin
    Mathew Gorge27-Jul-05 22:28
    sussMathew Gorge27-Jul-05 22:28 
    QuestionWhy it Fails? Pin
    dougcranston27-Feb-03 5:50
    memberdougcranston27-Feb-03 5:50 
    AnswerRe: Why it Fails? Pin
    Jim Smith15-Oct-04 9:09
    memberJim Smith15-Oct-04 9:09 
    GeneralRe: Why it Fails? Pin
    dougcranston15-Oct-04 9:18
    memberdougcranston15-Oct-04 9:18 
    GeneralRe: Why it Fails? Pin
    Anonymous14-Sep-05 15:32
    sussAnonymous14-Sep-05 15:32 
    GeneralShow pictures from a dir on a html-page Pin
    PBA20-Feb-02 1:43
    memberPBA20-Feb-02 1:43 
    GeneralSearchinf for a particular extension using VBscript Pin
    Gnanavel9-Oct-00 21:42
    sussGnanavel9-Oct-00 21:42 
    GeneralRe: Searchinf for a particular extension using VBscript Pin
    dzb00724-Nov-00 9:21
    memberdzb00724-Nov-00 9:21 
    Not sure if this might be a supplement to help you, worth a shot. Check out MS (HOWTO: Search Directories to Find or List Files)
    I used some of the sample code from this page and tweaked it to build a tool to retrieve all files within a directory (& subs) into an Access database... it was VERY helpful. As it searches (and stores if you like) the files, you can split the extension to retieve only those files. You can also use this to exclude file-types within your search. The code is VB, but i used in Access just to make my life easier to store into a Database. Email me & i'll send you the tool, if you like (Access 97). Good luck.

    GeneralNice! + More on scripts Pin
    Philippe Lhoste23-May-00 23:59
    sussPhilippe Lhoste23-May-00 23:59 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Terms of Use | Mobile
    Web02 | 2.8.170308.1 | Last Updated 17 May 2000
    Article Copyright 2000 by Ron Olson
    Everything else Copyright © CodeProject, 1999-2017
    Layout: fixed | fluid