VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Recursive Scan Directory

Anumeet Soni  (3 Submissions)   Files/File Controls/Input/Output   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

The first procedure scans any directory specified and all its subdirectories and fills an array with all the files found.
The other procedure returns the number of files in the directory specified and all its sub directories.

Inputs
the inputs are the "Directory to scan", the number of files(which is only required if u wanna have a progress bar,the fpgrid (third party grid)not used if u don't have the FarPoint Grid...can be modifed to use any other grid, listbox etc.

Assumes
include the Microsoft Scripting Runtime from references

Returns
nothing, it has a public filelist array which stores all the files with their paths.

Side Effects
U must specify the sFol(directory to scan) parameter as i have not included any checks in this code for that.(if it is blank)

Rate Recursive Scan Directory (2(2 Vote))
Recursive Scan Directory.bas

Recursive Scan Directory Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters