I need to check for the exist of a file using the file system object:
Dim oFileSystem, oFile, strPath
strPath = "C:\somepath"
Set oFileSystem = CreateObject("Scripting.FileSystemObject"
oFileSystem.GetFile(strPath)
Anyway, if the file does not exist you get a runtime error about the file not being found. Is there anyway to catch that error and display my own error?
Thanks,
bitwise
Dim oFileSystem, oFile, strPath
strPath = "C:\somepath"
Set oFileSystem = CreateObject("Scripting.FileSystemObject"
oFileSystem.GetFile(strPath)
Anyway, if the file does not exist you get a runtime error about the file not being found. Is there anyway to catch that error and display my own error?
Thanks,
bitwise