Jaruzel.com

Check if a Specified File or Directory Exists


'
'Check whether a File or Directory exists.
'
MsgBox(IO.File.Exists("c:\theFile.txt"))

MsgBox(My.Computer.FileSystem.DirectoryExists("c:\"))