Use the Dir function. Ex:
Dim strFile as string
strFile = Dir("c:\somefile.txt")
If Dir = "" Then
'file does not exist
Else
'file does exist and strFile now equals "C:\somefile.txt"
End If
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only