M
Mike
Thanks for the reply, I have been trying that, but I keep getting the same
results. The result I get is that the file exits, when it really doesn't.
All my msgbox display twice and I'm not sure why. Here is the code I'm
using. Can you help?
Public Const fnet As String = "\\server1\images"
Public pfile As String = "TEST01.TXT"
Private Sub DoesExist()
If System.IO.File.Exists(fnet & "\" & pfile) Then
MessageBox.Show(fnet & "\" & pfile & " file does not exist")
Else
MessageBox.Show(fnet & "\" & pfile & " file does exist")
End If
End Sub
results. The result I get is that the file exits, when it really doesn't.
All my msgbox display twice and I'm not sure why. Here is the code I'm
using. Can you help?
Public Const fnet As String = "\\server1\images"
Public pfile As String = "TEST01.TXT"
Private Sub DoesExist()
If System.IO.File.Exists(fnet & "\" & pfile) Then
MessageBox.Show(fnet & "\" & pfile & " file does not exist")
Else
MessageBox.Show(fnet & "\" & pfile & " file does exist")
End If
End Sub