Win10系统目前已很成熟,在局域网内的共享文件夹,建立了映射的网络驱动器驱动器,资源管理器能正常看到,但是在应用软件里打开文件,窗口却找不到该驱动器。
- 打开注册表编辑器 Regedit
- HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows-> CurrentVersion -> Policies -> System
- 添加新值 DWORD(32bit) 修改名称为EnableLinkedConnections
- 修改值为1
- 重启
代码注册(参考):
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是干什么的?