VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code recursively searchs a given directory with all his subdirectories and puts the found file

Ascher Stefan  (8 Submissions)   Files/File Controls/Input/Output   Visual Basic 5.0   Unknown Difficulty   Tue 15th February 2000   Mon 8th February 2021

This code recursively searchs a given directory with all his subdirectories and puts the found filenames in a ListView ("lvFiles")

API Declarations


Private Const FILE_ATTRIBUTE_HIDDEN = &H2
Private Const FILE_ATTRIBUTE_SYSTEM = &H4
Private Const FILE_ATTRIBUTE_DIRECTORY = &H10
Private Const FILE_ATTRIBUTE_ARCHIVE = &H20
Private Const FILE_ATTRIBUTE_NORMAL = &H80
Private Const FILE_ATTRIBUTE_TEMPORARY = &H100
Private Const FILE_ATTRIBUTE_COMPRESSED = &H800

Private Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" _
(ByVal lpFileName As String, lpFindFileData As WIN32_FIND_DATA) As Long
Private Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" _
(ByVal hFindFile As Long, lpFindFileData As WIN32_FIND_DATA) As Long
Private Declare Function FindClose Lib "kernel32" (ByVal hFindFile As Long) As Long


Rate This code recursively searchs a given directory with all his subdirectories and puts the found file (1(1 Vote))
This code recursively searchs a given directory with all his subdirectories and puts the found file.bas

This code recursively searchs a given directory with all his subdirectories and puts the found file Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters