Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find all the files and sub-folders under a folder

Folders and Files

How to find all the files and sub-folders under a folder

by  philcha  Posted    (Edited  )
If you've loaded the VB Sample programs, look at Winseek.vpb - it contains a subroutine "DirDriver" which recursively works its way through all the levels of sub-folder below the start folder and returns all the file and folder names. I've tailored it twice for various purposes. If I want to use it again I might convert the subroutine into an object so it's done forever.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top