Here's what I have so far...
Expand|Select|Wrap|Line Numbers
- Dim fso, fol, subfol, fo, fls, fl, subfol2, subfol3
- sSearchString = "C:\"
- Set fso = CreateObject("Scripting.FileSystemObject")
- Set fol = fso.getfolder("C:\")
- Set subfol = fol.subfolders
- For Each fo In subfol
- On Error GoTo Resumeit
- Set fls = fo.Files
- 'Else
- For Each fl In fls
- If UCase(Right((fl.Name), 3)) = "ZIP" Then
- ' MsgBox fl.Name
- End If
- Next fl
- Resumeit2:
- Next fo
application.filesearch does not recognize .zip files as files, so that trick is out.
This is as close as I've come.
Can anyone help me drill down from here? Is there a better method?
Thanks in advance.