.NET Framework Bookmark and Share   
 index > Common Language Runtime > UNC path of Network folders
 

UNC path of Network folders

Hi,

I am using a System32 dll to get the complete list file structure as in explorer(complete my computer and my network places with icons). I need to find out the UNC path of the network folder.

For example if there is a network folder called XXX under My Network Places.

Shell32.FolderItem is returning the path C:\Documents and Settings\UserName\NetHood\XXX. But the path has to be \\Machine Name\XXX.

Any pointers regarding this is highly appreciated.

Thanks,

Hema.

HemaR
If I remember correctly, those are just link files (shortcuts). You should be able to use the ShellLinkObject from Shell32 to find the link's target or path. That target or path should give you the UNC.
Rob Teixeira
If I remember correctly, those are just link files (shortcuts). You should be able to use the ShellLinkObject from Shell32 to find the link's target or path. That target or path should give you the UNC.
Rob Teixeira

You can use google to search for other answers

Custom Search

More Threads

• MArshalling collections to VBScript
• What replaces const?
• Certificate store ???
• Disposing of Property Holders? (VB.Net 2005)
• Exceptions and Invoke
• Folder Browser Dialog box crashes
• Cropping a System.Drawing.Image
• Events with COM Interop & VB6.0 for C++
• How to access a control's methods from another module
• Unable to get the window handle for the 'AxActiveX' control. Windowless ActiveX controls are not supported