|
-
Feb 2nd, 2004, 08:58 PM
#1
Thread Starter
Frenzied Member
[VB] Search for files
Dim FSO, f, fc, fj, s, f1
Dim sFolder As String
sFolder = "C:\mydir\" 'makesure there is a ending slash
Set FSO = CreateObject("Scripting.FileSystemObject")
Set f = FSO.GetFolder(sFolder)
Set fc = f.SubFolders
Set fj = f.Files
For Each f1 In fj
s = sFolder & f1.Name
's is the currect file
Next
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|