Retrieving relative path, not UNC path
Posted on 2006-06-14
I'm running an .exe from a Windows 2003 network share (\\myserver\DATA\Files\MyApp.exe).
When i run this code:
I will get this result: "\\myserver\DATA\Files"
On the computer in run this on, \\myserver\DATA\ is mapped to F:\
What i want, is to get "F:\Files" as a result, and NOT "\\myserver\DATA\Files"
How can i accomplish this ??
Thanks in advance for any help,