G
Guest
This will work for you assumimng you meant the windows directory and not all
subdirectories. Place it in a standard code module...
Public Function FileExists(ByVal FileName As String) As Boolean
FileExists = CBool(Len(Dir("C:\Windows\" & FileName)))
End Function
subdirectories. Place it in a standard code module...
Public Function FileExists(ByVal FileName As String) As Boolean
FileExists = CBool(Len(Dir("C:\Windows\" & FileName)))
End Function