Listing Folders

Results 1 to 2 of 2

Thread: Listing Folders

  1. #1
    Dan H Guest

    Default Listing Folders

    I am trying to create a filesystemobject that will list the entire contents of a root drive. Any tips?

  2. #2
    Join Date
    Dec 1969

    Default RE: Listing Folders

    Tip: Check out the FileSystemObject FAQ on 4Guys!<BR><BR><BR>Here is some code:<BR><BR>Dim objFSO, objFolder<BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR>Set objFolder = objFSO.GetFolder("C:\")<BR><BR>Dim objFile<BR>For Each objFile in objFolder.Files<BR><BR>Response.Write objFile.Name & "<BR>"<BR><BR>Next<BR><BR><BR>Happy Programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts