"WhiskyRomeo" <WhiskyRomeo@discussions.microsoft.com> schrieb:
> Is there a way for the OpenFileDialog to return the UNC equivalent of the
> path of a file the user selects or is there another way to discover the
> UNC
> equivalent of the path?
Notice that there is not necessarily a one-to-one mapping between local
paths and UNC paths, because there can be multiple shares. You can use
p/invoke on 'WNetEnumResource' to get a list of shares on the server.
<URL:http://groups.google.de/groups?threadm=u7G9U0KzCHA.1768%40TK2MSFTNGP12>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
WhiskyRomeo - 15 Jan 2005 00:39 GMT
Thanks for the help.
It is too bad this is not handle by .NET because it is such a common need
and it should be as simple as setting properties in OpenFileDialog like
OpenFileDialog.ShowPath = "Normal" 'Normal path is shown to user
OpenFileDialog.ReturnUNCPath = True 'UNC path is the value returned
oh well, again thanks for the response.
Bill
> "WhiskyRomeo" <WhiskyRomeo@discussions.microsoft.com> schrieb:
> > Is there a way for the OpenFileDialog to return the UNC equivalent of the
[quoted text clipped - 7 lines]
>
> <URL:http://groups.google.de/groups?threadm=u7G9U0KzCHA.1768%40TK2MSFTNGP12>