Does file exist

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hello all, is it possible to check if a network file exists using vb.net? I
would like to query it in this way: \\servername\sharename\thisfile.txt
Is there anyway to do this using vb.net.

Thanks in advance
 
If System.IO.File.Exists("\\servername\sharename\thisfile.txt") Then
' the file exists
Else
' it doesn't
End if
 
Back
Top