Results 1 to 3 of 3

Thread: File system Objects

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Posts
    217
    Does anyone have any code using the file systems objects, to enumerate through each directory in a certain path, for example, "c:\", and listing all files in all of the directories. Thanks

  2. #2
    Addicted Member GungaDin's Avatar
    Join Date
    Apr 2001
    Location
    Brisbane, Australia
    Posts
    146
    I have attached a module wich contains a FindFIlesAPI function and uses some API calls.

    You can use this to cycle through all files as follows:

    Call FindFilesAPI("c:\", "*.*")

    Or you can just look for specific files or wildcard matches.

    Call FindFilesAPI("c:\", "*.doc")

    I must say that I didn't write this code, I got it from a web site somewhere but it was pretty good I thought.


    It doesn't use the FileSystemObject but it does what you want.


    Hope this helps,

    Nathan Liebke

    Attached Files Attached Files

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Posts
    217
    Perfect! Thank You

Posting Permissions

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



Click Here to Expand Forum to Full Width