Yup that should do it! I actually just found that as well. Much thanks. I also found some more usefull functions in mpr.dll http://computer.programming-in.net/articles/art9-2.asp?lib=mpr.dll[^]
achoi6
Posts
-
How to find out if a file is local or from the network -
How to find out if a file is local or from the networkCan someone point me in a direction on how to solve this problem? I have to be able to find out if a file I am pointing to is local or not. I can point to a file through the network neighborhood or through a networked drive. I think finding out if the file was accessed through the network neighborhood would not be a problem, its when I map a network drive. Once the drive is mapped, it is given a drive letter like any other local drive. Help would be much appreciated. PS. This seems promising... http://www.codeproject.com/csharp/mapnetdrive.asp[^] My idea was to try to unmap the drive and if my attempt fails, the drive must be local. The problem is, that if I unmap a drive with a username:pw, I have to remap it with the same username:pw which I may not have. For the network neighborhood, Does checking the root of a file work? ex. \\NAME\c$