程序找不到映射网络驱动器问题

Win10系统目前已很成熟,在局域网内的共享文件夹,建立了映射的网络驱动器驱动器,资源管理器能正常看到,但是在应用软件里打开文件,窗口却找不到该驱动器。

  1. 打开注册表编辑器 Regedit
  2. HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows-> CurrentVersion -> Policies -> System
  3. 添加新值 DWORD(32bit) 修改名称为EnableLinkedConnections
  4. 修改值为1
  5. 重启

代码注册(参考):

 RegistryKey key = Registry.LocalMachine;
 RegistryKey system = key.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System", true);
 if (system == null)
 {
     system = key.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
 }
 system.SetValue("EnableLinkedConnections", 1, RegistryValueKind.DWord); 

遗留问题:EnableLinkedConnections是干什么的?

转自:http://blog.sina.com.cn/s/blog_5ef7acf50102xmcw.html