Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNC path to local path?
Message
From
11/08/2003 13:03:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
UNC path to local path?
Miscellaneous
Thread ID:
00819008
Message ID:
00819008
Views:
60
Hi all

I'm using the a modified version of the "Who opened what files on the network?" utility from Paul Vlad Tatavu (thanks Vlad!) and it works great....but...

The second parameter to be passed has this restriction:
*--------------------------------------------------
* The base path. Only the files in this directory
* (and all subdirectories) will be returned.
* This path must be specified as the local path
* on the computer where the files were opened, and
* not as the UNC path.
*--------------------------------------------------
Now, I have a problem, one of my apps is installed in a mapped drive, and I can't use the function as it requires the LOCAL path on the file server.

So if the exe in the file server is in:
D:\somefolder\somefolder0\somefolder1\myapp\myexe.exe

and the UNC path is:

\\fileserver\somesharedfolder\myapp\myexe.exe
or
\\fileserver\D$\somefolder\somefolder0\somefolder1\myapp\myexe.exe

and my customer has it "\\fileserver\D$\somefolder\somefolder0\somefolder1\" mapped as W:, then
with w:\myapp\myexe.exe I can get the UNC path, but, how to get the LOCAL path on the file server?
Is it possible at all?

TIA
Maria E. Zambrano
Next
Reply
Map
View

Click here to load this message in the networking platform