ASP/.NET Web Hosting
* 3 Months FREE *
CLICK HERE!
 CoverYourASP --> Walking through server folders and files --> Part 5

Free membership

Join in the fun! Sign in
Member Services

Site navigation
Download the entire site!
Search my articles
Free Magazines
Browse the directory

Send me feedback
Buy my boxer shorts

Recommend this page
Printer-friendly page

Resources I recommend
Link to my site
Advertising slashed!
About your privacy
Legal stuff
Site statistics
64 active users
2583 visitors today
4666 pages today
how is this done?
Tools I use

CoverYourASP
Copyright © 1999-2008 James Shaw.
All rights reserved.

ASP.NET Blog
RSS submissions
E-commerce

Now open source with SourceForge!

As promised, here is the code in action, live. Everybody that views this page runs the WalkFolders( ) function, and that is what is displaying the results below.

You can see how the notification functions I used here just display the names, and use the nLevel value to indent the sub-folders and files.

My search (coming soon) uses the same method with different functions that actually index the content in the files.

Folder "WalkFolders":

      test.asp
      test2.asp
      test3.asp

      Folder "Empty":

      Folder "LastOne":

            Folder "(Almost)":

                  test.asp

      Folder "SubFolder1":

            test.asp
            test2.asp

Featured sponsor
My favorite resources

Tiki Statues - Tiki Masks - Tiki Totems


CoverYourASP Mugs, T-shirts, caps - even Boxer shorts...
I don't make a penny from these, but they're a lot of fun! Don't you need a new mouse mat?


I share my content

Supporting ASPRSS

Do you need a quick and easy way to link to my articles? All the information you need is published with ASPRSS...