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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…