S
Smurfman-MSDN
Using VB2008 SP1 on Vista Ultimate x64 SP1
I have a service that is supposed to be polling a location on another server
using a simple
If File.Exists (xyz.file) then
Return True
Else
Return False
End If
I have found that if the Share is mapped to the computer where the service
is running such as "X:\filename" the service is not finding the file at the
location even though it exists.
HOWEVER, if I change the logic to be "\\UNC\Share\filename" the service
finds the file and can return a valid value.
Am I missing something as to why I cannot find a file on a mapped drive but
I can using a UNC name?
Thanks
J
I have a service that is supposed to be polling a location on another server
using a simple
If File.Exists (xyz.file) then
Return True
Else
Return False
End If
I have found that if the Share is mapped to the computer where the service
is running such as "X:\filename" the service is not finding the file at the
location even though it exists.
HOWEVER, if I change the logic to be "\\UNC\Share\filename" the service
finds the file and can return a valid value.
Am I missing something as to why I cannot find a file on a mapped drive but
I can using a UNC name?
Thanks
J