VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

List All Files in Folder plus Subfolders (Simple, One Function)

Kamilche  (35 Submissions)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Given a pathname, this function will
return a string containing a list of
all files in that folder plus subfolders.
Much easier than other examples posted here!
A single recursive function, with no
API's or special types needed.

Inputs
A pathname to the directory you want to process.

Returns
A string containing all files in that folder + subfolders.

Side Effects
Kinda slow. For speed use the FindFirstFile and FindNextFile API's, but beware, they're more complex to set up.

Rate List All Files in Folder plus Subfolders (Simple, One Function) (3(3 Vote))
List All Files in Folder plus Subfolders (Simple, One Function).bas

List All Files in Folder plus Subfolders (Simple, One Function) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters