Open the Windows 7 "Network Drive Map" program code
I am trying to open a dialog which is manually accessible via "Computer> Map Network Drive" in Windows 7. Is there any programmatic way to open it directly, eg. with VBScript or PowerShell commands (not by triggering mouse or keyboard events)? I know the net use ...
shell command , but I specifically want to display this dialog.
+3
source to share
2 answers
Try WNetConnectionDialog:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa385433%28v=vs.85%29.aspx
or WNetConnectionDialog1:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa385436%28v=vs.85%29.aspx
+4
source to share