我正在尝试使用这行批处理脚本删除y:映射到网络目录的驱动器.
net use y: /d /y>nul
The network connection could not be found. More help is available by typing NET HELPMSG 2250.
有没有办法避免打印此错误?我试过网用y:/ d / y> nul> nul但没有运气
解决方法
你不能首先导致错误:
if exist y:\ net use y: /delete