J
Joe
I am trying to find out if a file exists on a network share, but it
keeps coming up false.
The files I am attempting to see are on the following link,
\\swvtc08\EmpPhotos\
But when I try using that UNC in FileExists, it returns false.
To test a little more, I tried the FileExists command on a file on the
local webserver, but the only way it worked was if I explicitly set
the full path of the file, ie c:\inetpub\..., it returned false when I
tried, "\\swvtc06\swvtc\file.jpg" or "http://swvtc06/swvtc/file.jpg".
I have set the remote directory up as a virtual directory, so I can
get to that by http://swvtc06/EmpPhotos, but that didn't help either.
What am I doing wrong here? I am not getting any error messages, it
just returns false for everything but the explicit path.
Thanks,
Drew
keeps coming up false.
The files I am attempting to see are on the following link,
\\swvtc08\EmpPhotos\
But when I try using that UNC in FileExists, it returns false.
To test a little more, I tried the FileExists command on a file on the
local webserver, but the only way it worked was if I explicitly set
the full path of the file, ie c:\inetpub\..., it returned false when I
tried, "\\swvtc06\swvtc\file.jpg" or "http://swvtc06/swvtc/file.jpg".
I have set the remote directory up as a virtual directory, so I can
get to that by http://swvtc06/EmpPhotos, but that didn't help either.
What am I doing wrong here? I am not getting any error messages, it
just returns false for everything but the explicit path.
Thanks,
Drew