468,268 Members | 1,701 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

UNC vs MAPPED drives

Hi,

How do i convert a mapped drive to an UNC path i .Net 2.0 ??
Is it really necessary to use "WNetGetUniversalName" ??

BR
Peter
May 10 '06 #1
3 1220
On Tue, 9 May 2006 11:02:11 +0200, "Peter Larsen" <tj******@gmail.com> wrote:

Hi,

How do i convert a mapped drive to an UNC path i .Net 2.0 ??
Is it really necessary to use "WNetGetUniversalName" ??

Either that or WNetGetConnection or the File System Object.
Paul
~~~~
Microsoft MVP (Visual Basic)
May 10 '06 #2
Please explain to me what you mean about "File System Object" ??

What i really want to do, is to understand how Explore know that a changes
in a UNC path also should be reflected in others UNC paths, like this:
\\servername\dir is the same as \\companyname\city\dir.

How does Explore knows when the above dirs is the same ??
I have tried to compare pidl's (IShellFolder:CompareIDs), but it doesn't
work.

Thank you in advance.
BR
Peter

"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:5e********************************@4ax.com...
On Tue, 9 May 2006 11:02:11 +0200, "Peter Larsen" <tj******@gmail.com>
wrote:

Hi,

How do i convert a mapped drive to an UNC path i .Net 2.0 ??
Is it really necessary to use "WNetGetUniversalName" ??

Either that or WNetGetConnection or the File System Object.
Paul
~~~~
Microsoft MVP (Visual Basic)

May 10 '06 #3
I think i have found an explanation to how Explore notify about directory
changes (SHCNE_UPDATEDIR).
It seems like the shell remember which directories i have looked in and
notify me if any of those directories has changed.

/Peter
May 10 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by giloosh99 | last post: by
3 posts views Thread by Bonj | last post: by
1 post views Thread by Mark | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.