Hi, the script below worked until a few weeks ago. The only change
that we know of were security changes such as deleting an administrator
account under which the file was originally created. Does anyone know
if security issues would make this script below fail and/or how this
could be resolved? Thanks.
SourceDir = "G:\test"
With Application.FileSearch
.NewSearch
.LookIn = SourceDir
.SearchSubFolders = False
.Filename = ".txt" ' also tried "*.txt"
If .Execute() > 0 Then ' returns false even though
files exist in G:\test
MsgBox "Success??"
Else
MsgBox "Execute() failed"
End If
End With
Dave