I use File.IO.Exists against UNC all the time (Windows and/or Novell
servers).
No matter how impossibly sure you are the UNC path is correct, I would
double check to make sure it's correct. Maybe your WINS/DNS server has an
outdated address cached for Srv09, and it's sending your program a bogus
address... or the UNC is actually typo'd in the database but you assume it
isn't... or it's resolving to Srv09 on some other network somewhere else
that doesn't have that share on it, or you're running on Win98 and NETBIOS
isn't on, or "something stupid" like that. AFAIk, a valid UNC path should
work.
"raibeart" <ra******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I am trying to use System.IO.File.Exists to determine if a file exiusts
on a server. I am using a UNC path stored in a database table. Is
there a way to use UNC rather than a mapped drive?
For example:
\\Srv09\Data\LogCenter\Logs\log_1.tif will not work
x:\LogCenter\Logs\log_1.tif will work
Thanks in advance.
Robert