FileSearch.Execute with ZIP files

F

FBxiii

Hi.

I have a piece of code to search for the specified file type within a folder.

This works fine for all File types, except ZIP files. Is there anyway of
getting it to recognise ZIP files?

Cheers,
Steve.

Here is a code snippet...

With Application.FileSearch
.NewSearch
.LookIn = strBackupDocsFilePath$
.SearchSubFolders = False
.Filename = "*" & strFileName$ & "*." & strExt$
'.TextOrProperty = strshipper$
.MatchAllWordForms = False
' .FileType = strExt$
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
 
F

FBxiii

Thanks for that. I couldn't get either method to work though.

I have found I can use Dir() but the app wasn't one I developed so I am
passing it back to the person who did as it will be a major change.

Cheers anyway,
Steve.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top