Mapping Network Drives

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all!

I'm trying to figure out how to map a network drive in VB.NET/.NET
Framework. I understand that I can add references to wscript and the
scripting runtime library, but I want to do it w/VB.NET & the Framework.
Suggestions? Thanks in advance!
 
One option is to spawn the "net use" command.

Hi all!

I'm trying to figure out how to map a network drive in VB.NET/.NET
Framework. I understand that I can add references to wscript and the
scripting runtime library, but I want to do it w/VB.NET & the Framework.
Suggestions? Thanks in advance!
 
Right. I knew I could do that too, but I do want to use "pure" VB.NET and the
..NET Framework. Thanks for the suggestion Siva!
 
GWold said:
Right. I knew I could do that too, but I do want to use "pure" VB.NET and
the
.NET Framework. Thanks for the suggestion Siva!

The .NET Framework currently doesn't support mapping network drives. You
may either want to use WSH or p/invoke + 'NetShareAdd'.
 
Back
Top