I need to be able to map a network drive from .net, but the only method I have found so far is by using vbscript (wscript) from within .net, to call "net use" :-S
I hope I'm mistaken and that there is a native way to map a drive...
I need to be able to map a network drive from .net, but the only method I have found so far is by using vbscript (wscript) from within .net, to call "net use" :-S
I hope I'm mistaken and that there is a native way to map a drive...
Does system.net have any way to map a network drive?
sha240
There is no way to do that from System.Net.
try
http://www.codeproject.com/csharp/mapnetdrive.asp
Alex Dresko (MVP wannabe)
Orcabelle
Guess my shelling out to dos with vbscript is as clean as anything at this point. :-)
I'll just keep my code as is, maybe ORCA can add this method...
thanks