Enumerating Folders In ASP

 
 
Enumerating Folders in ASP
 
 
  1. <%

  2.    Dim fso

  3.    Dim Rootfolder

  4.    Dim SubFolder

  5.    

  6.    set fso = Server.CreateObject("Scripting.FileSystemObject")

  7.          

  8.    Set RootFolder = fso.GetFolder ("C:")

  9.    

  10.    for each SubFolder in RootFolder.SubFolders

  11.       Response.Write SubFolder.Name 
 
Copy to Clipboard      Download code as Text Format
 
  Date entered : 14th Jun 2007
  Rating : No Rating
  Accessed  :  3325
  Submitted by :  mobeenamjad
 
   Add Comment  Printer friendly
   View All Comments  Email to a friend
   Add to my Favourites Download PDF version
   Rating  
 
                 Click each image to add
this page to each site.
 
 
 
Comments Available

    No comment available at the moment.Be the first one to make a comment

 
Related ASP Source Codes
  • Spring
  • Wraps a string to a given number of characters using a string break character
  • Uppercase the first character of each word in a string
  • Make a string's first character uppercase
  • Strip whitespace (or other characters) from the beginning and end of a string

  • Copyright © 2013 VisualBuilder. All rights reserved

    Warning: Unknown(): write failed: Disk quota exceeded (122) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0