The best way to Connect and Disconnect network drives in VB.Net

S

Sparky

Hi

I was wondering if someone can please enlighten me as to the best and most
approved way to connect and disconnect network drives in vb.net.

I have been using Mpr.dll API calls such as WNetCancelConnection2 and
WNetAddConnection2, but these seem to be very flakey with drive
disconnection (The drive conenction seems to be pretty good).

I would have through that Microsocft would have provided a simple class you
can call to take care of mapping network drives etc, but so far i have only
found API calls as the way to do this.

Has any one got a rock solid stable way to connect and disconnect network
drives in vb.net?

many thanks

Sparky.
 
S

Sparky

Hi Guys - I am moving this to the
microsoft.public.win32.programmers.networks forum as i thinks it better
suited.

Cheers

Sparky.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top