我如何prevent的"找不到"从德尔错误信息* .TXT? [英] How do I prevent the "Could Not Find" error message from del *.txt?
本文介绍了我如何prevent的"找不到"从德尔错误信息* .TXT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Windows批处理文件,该行:
In a Windows batch-file, this line:
del *.txt
会给出错误/警告消息:
Will give the error/warning message:
Could Not Find C:\*.txt
如果没有匹配的模式* .txt文件。有没有一种方法,以prevent该消息?
if there are no files matching the pattern *.txt. Is there a way to prevent that message?
推荐答案
如果你想用晚餐preSS 全部的错误信息,你可以这样做:
If you want to suppress all error messages, you can do this:
del *.txt 2>NUL
这篇关于我如何prevent的"找不到"从德尔错误信息* .TXT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文