G Guest Jul 5, 2004 #1 I have a Visual Basic .Net application that needs to disconnect and connect a network drive, how can I do this?
I have a Visual Basic .Net application that needs to disconnect and connect a network drive, how can I do this?
G Guest Jul 5, 2004 #2 http://www.vbcity.com/forums/topic.asp?tid=6731 I believe you have to break into unmanaged. There might be something in System.DirectoryServices
http://www.vbcity.com/forums/topic.asp?tid=6731 I believe you have to break into unmanaged. There might be something in System.DirectoryServices
A Arran Pearce Jul 6, 2004 #3 I dont believe there is anything in System.DirectoryServices. But yes you can use P/Invoke to call a Win32 API. Another solution is to use System.Diagnostics.Process to run the net use command. (e.g. "NET USE z: \\server\share")
I dont believe there is anything in System.DirectoryServices. But yes you can use P/Invoke to call a Win32 API. Another solution is to use System.Diagnostics.Process to run the net use command. (e.g. "NET USE z: \\server\share")