-
Converting Paths
does anyone know of a function or api call (this may not even be possible) that can convert a unc path to its true path
eg convert
\\myserver\hello
To
f:\hello
where f: is the physical drive on the server myserver that the folder hello resides on.
If you have any information that resolves this or leads to the resolution of this issue there will be absolutly nothing in it for you apart from my deepest thanks and appreciation :)
-
I wonder if the operating system even knows what the drive is of the server. You may want to go about it another way. Assuming you have admin rights to the server in question. You may want to access the server directly and see what drives it has available and then evaluate each drive to see if it has a share with the name you are looking for.
You need to remmebr though, that this approach will most likely only work on Windows systems because I do not think UNIX based operating systems do not have drive letters.
I hope that helps some.
-
okay thanks for your comments steve
I thought along your lines originally
However even though im using a dll that i have written that is installed and executed from the server using com+
I have not been able to make a remote app exam the servers harddrives and return those values
Which is why i thought maybe browsing it using the unc paths and then converting those to a true path might be possible.
If anybody knows of a way for me to achieve either method (REMEMBER I AM WANTING TO EXECUTE THIS APP REMOTLEY) then your input would be appreciated
Thanks all
-
PS this is being designed to run on WIn 2000 servers and win 9x or NT workstations
-
-
The link below points to a description of a VC++ call to what looks like mapi32.dll to do what you want. The call is pretty straigth forward and should be easy to convert a VB declaration. It does say the function may not be supported in future versions.
http://msdn.microsoft.com/library/de...athfromunc.asp
Good luck,
Greg
-
thanks greg im checking it out now ;)