title: How do I map a network drive that requires a username and password in .NET?
body: <p>I need to map a network drive from within a .NET application.  I'm going to need to use an AD Username and Password to authenticate.  Usually I just use a batch file with the <code>net use</code> command.  How do I do this from within C# or VB.NET code?</p>