I made 2 great functions called FoldersToProc and FilesToProc. They work like a system hook, and they call that proc with 2 parameters (Path and Finished). You can call them like this:
FilesToProc:
Where frmMain is the object that holds the function, "FileProc" is the name of your function, VbMethod is the call type, and "C:\" is the base path of where to get the path of every file in and in all subdirectories.VB Code:
FilesToProc frmMain, "FileProc", VbMethod, "C:\"
Requirements for FileProc or whatever name you want:
VB Code:
Public Function FileProc(ByVal Path As String, ByVal Finished As Boolean) As Boolean If Not Finished Then 'Do what you want with Path here FileProc = True 'Continue receiving file paths Else 'All file paths have been received, and 'Path does not include a file path. End If End Function
(Continued in next post)...




Reply With Quote