scan sub-dir with FSO

Results 1 to 2 of 2

Thread: scan sub-dir with FSO

  1. #1
    Join Date
    Dec 1969

    Default scan sub-dir with FSO

    ok right now I&#039;m using this to scan a directory and return a list of the files: <BR><BR> Set fs = CreateObject("Scripting.FileSystemObject") <BR> Set f = fs.GetFolder (contentpath) <BR> Set fc = f.Files <BR><BR>but this only scans the one folder that it&#039;s set to, <BR>is there a way to scan all the sub-directorys too,?<BR>or list them, so the script can move between sub-folders??<BR><BR>thanks in advance for your time!

  2. #2
    Join Date
    Dec 1969

    Default Did you read the ASPFAQ?

    On listing the contents of a directory?<BR><BR>It points off to an article on 4Guys that does just this (and more).<BR><BR>Recursion is the key.<BR><BR>Oh...what the heck...<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