advertisement

Find Code  Advanced Search   

Free Newsletters:   
browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Map Drives to Novell Netware or MS NT Servers

Author: Jason Coan
Category: Network/Internet
Type: Classes
Difficulty: Advanced

Version Compatibility:  Visual Basic 6  

More information: First off I'd like to say I'm not trying to take credit for this code, I had found 2 sections of code, 1 allowed mapping to a NT server, the other allowed mapping to a Netware server. It was cumbersome and confusing to have to call seperate APIs based upon what type of server I was trying to map a drive to, so I added to 2 code sections together, made them a Class Module, then added a little error handling.

NOTE: The Netware connection will connect as the current user, the NT code requires a username and password. For my purposes I set the code to login as administrator, but you could easily change this to any user, or even prompt the user for username and password prior to mapping a drive.

This code has been viewed 70058 times.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

code/MapDrive.zip

Sponsored Links