Advertisement
答案 (7)
得分
26
2011-12-01 18:56:41 +0000
在命令行中(用你的驱动器字母代替z):
net use z: /delete
```。
William Jackson
http://superuser.stackexchange.com/users/107722
Advertisement
解决方案找到了!
Advertisement
得分
2
2016-03-04 16:38:54 +0000
有一个更有力的方法可以消除映射网络驱动器的死链接。
你可以删除注册表中的引用。
只要打开 “regedit.exe",然后展开 ”HKEY_CURRENT_USER“键和 ”Network“键。在那里你会看到带有字母的键,它们将代表映射的驱动器字母。当你在 "regedit.exe "上删除一个字母时,映射的驱动器字母将在下一个Windows重新启动周期中消失。
DrupalFever
http://superuser.stackexchange.com/users/107722
Advertisement
得分
1
2015-05-22 03:29:44 +0000
对于断开的驱动器,如果你的电脑里有SQL Server Management Studio,只需运行这个查询。
Exec master.dbo.xp_cmdshell 'net use x: /delete'
- 根据驱动器名称更改'x'。
- 不确定是否能在其他数据库中使用。
- 如果你的xp_cmdshell不工作或不活跃,出现这个错误。
SQL Server阻止了对组件'xpcmdshell'的存储过程'sys.xpcmdshell'的访问,因为该组件作为该服务器安全配置的一部分被关闭。系统管理员可以通过使用sp_configure来启用'xpcmdshell'。有关启用'xpcmdshell'的更多信息,请参见SQL Server Books Online中的 “表面区域配置"。
通过运行此查询启用xp_cmdshell。
-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
Advertisement