Discussion Locked
0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am new to VB and am using VB 6 to get a list of files in folders and subfolders of a specified drive. Anyone have a script to do this that I can use? Any help would be appreciated!!!!
2 replies
by jakl
First select Microsoft Scripting Runtime item from Project/References
//Example code
Dim FSys As New Scripting.FileSystemObject
Set ThisFolder = FSys.GetFolder(folderName)
Set AllFiles = ThisFolder.Files
For Each file in AllFiles
{put you code logic here}
Next
by jakl
First select Microsoft Scripting Runtime item from Project/References
//Example code
Dim FSys As New Scripting.FileSystemObject
Set ThisFolder = FSys.GetFolder(folderName)
Set AllFiles = ThisFolder.Files
For Each file in AllFiles
{put you code logic here}
Next
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
0 helpful
1 reply
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies