Recursive Get ALL files from a Folder and its Subfolders and its Subfolder Subfolders etc.
Recursive Get ALL files from a Folder and its Subfolders and its Subfolder Subfolders etc.
AI
AI சுருக்கம்: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
மூலக் குறியீடு
public filetext as String private sub command1_click() Dim fso As New FileSystemObject myfoldertext="C:\folder\" call get_all_directory_files(fso.getfolder(myfoldertext)) text1.text=filetext set fso=nothing end sub Public Sub get_all_directory_files(ByVal tfolder As folder) Dim objfile As file Dim objfolder As folder Dim fso As New FileSystemObject If tfolder <> "" Then For Each objfile In tfolder.Files 'do the stuff we want with the files filetext=filetext+objfile+ vbNewLine Next For Each objfolder In tfolder.SubFolders Call get_all_directory_files(objfolder) Next Set fso = Nothing End If End Sub
அசல் கருத்துகள் (3)
வேபேக் மெஷினிலிருந்து (Wayback Machine) மீட்டெடுக்கப்பட்டது