>>If that works it's the simplest solution. An alternative would be to use the mpr.dll WNetAddConnection (or WNetAddConnection2).
>>There's a C# example wrapper here:
http://pinvoke.net/default.aspx/mpr.WNetAddConnection2>
>That would be interesting as well as it would be .NET code directly without having the need to execute the Process class.
>
>Do you know if that library is part of .NET or Windows?
mpr.dll is Windows (Multiple Provider Router). The link shows an example of importing and calling from C#. Should be simple to create the VB.NET version.