File exists on network drive

Heppen

Member
Joined
Dec 23, 2005
Messages
9
Programming Experience
1-3
Hi there i want to know if an file exists on a network drive.
i tried this:

VB.NET:
If System.IO.File.Exists(path) Then
  response.write("Yes !!")
end if

This works fine on local drives but not on a network drive any solutions ???
 
it doesnt work on network drives because of security permissions? (ive never had a problem with using FileInfo.Exists on mapped drive letters or UNC paths so long as i had permission to access the directory)
 
Back
Top