![](/img/trans.png)
[英]Batch Script to run NET USE Command five times and continue or break depend on error
[英]How to hide 'net use' command error message in batch script
我正在尝试使用这行批处理脚本删除y:
映射到网络目录的驱动器。
net use y: /d /y>nul
但在情况y:
不存在已经删除。 它给了我这个错误信息。
The network connection could not be found.
More help is available by typing NET HELPMSG 2250.
有没有办法避免打印此错误? 我试过net use y: /d /y>nul>nul
但没有运气
你不能首先导致错误:
if exist y:\ net use y: /delete
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.