Refresh Network Drive Mapping

  • Thread starter Thread starter AdmiralTuts
  • Start date Start date
A

AdmiralTuts

Guest
Hello VS developers

Windows 10 / Visual Studio 2015 / VB or C#

I am looking for suggestions to "Refresh" the drive mappings displayed in windows explorer after progmatically changing a network drive mapping.

Example: Drive X: is connected to \\server\shareABC -- Windows Explorer corrrectly displays X: connected to \\server\shareABC
my code, using WNetAddConnection2 replaces drive X: with \\server\shareXYZ. The actual connection is to shareXYZ but Windows Explorer still displays shareABC as connected to X:.

Short of killing and restarting the explorer process I can find no way to update the display.

Any suggestions would be appreciated!

Continue reading...
 
Back
Top