Try something like this:
Function FileExists(strPath)
'checks if file (strpath) exists and return true if it does, False if it doesn't
Dim oFSO
Set oFSO = CreateObject("scripting.Fi
If 0FSO.FileExists(strPath) Then
FileExists = TRUE
Else
FileExists = FALSE
End If
End Function
Main Topics
Browse All Topics





by: DarkoLordPosted on 2007-05-09 at 04:56:26ID: 19056169
Dim fso pting.File SystemObje ct")
set fso = Wscript.CreateObject("Scri
If fso.FileExists(fileName) Then
' Do something
End If