tags:

views:

138

answers:

1

If I try to write a file to a network drive, that is disconnected, I get an error.

If I doubleclick the drive in explorer, the network drive is reconnected.

Using System.Io.Driveinfo.IsReady I can check if a drive is ready - but how can I reconnect it in code?

+2  A: 

Would this code which shows how to map the drive and unmap it dynamically at runtime do? This is on CodeGuru.

Hope this helps, Best regards, Tom.

tommieb75