Home All Groups Group Topic Archive Search About
Author
2 Jun 2006 3:12 PM
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

Author
2 Jun 2006 3:26 PM
Andrew Taylor
If System.IO.File.Exists("\\servername\sharename\thisfile.txt") Then
  ' the file exists
Else
' it doesn't
End if



Mike wrote:
Show quoteHide quote
> 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