Searching subdirectories with FSO

Results 1 to 2 of 2

Thread: Searching subdirectories with FSO

  1. #1
    Join Date
    Dec 1969

    Default Searching subdirectories with FSO

    Coming into a new project, I need to use FSO to search a directory and it&#039s subdirectories. How does one do this without listing each directory? Several of these directories have hundreds of subdirectories.<BR><BR>Thanks for any help.

  2. #2
    Join Date
    Dec 1969

    Default RE: Searching subdirectories with FSO

    &#060;%<BR>dim folderspec,fso,fd,subFd<BR>folderspec=server.mapPa th("/blah")<BR><BR>Set fso = CreateObject("Scripting.FileSystemObject")<BR>Set fd = fso.GetFolder(folderspec)<BR>For each subFd in fd.Subfolders<BR>....&#039 do something<BR>next<BR>set fd=nothing<BR>set fso=nothing<BR>%&#062;<BR><BR>Does it help?<BR>jw<BR><BR>

Posting Permissions

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