General discussion

Locked

File Listing Script

By wayne_jacob ·
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!!!!

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Use FileSystemObject

by jakl In reply to File Listing Script

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

Collapse -

Use FileSystemObject

by jakl In reply to File Listing Script

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

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums