Batch file 批处理文件-命令输出

Batch file 批处理文件-命令输出,batch-file,Batch File,我将命令的输出重定向到一个.txt文件,并得到如下输出 “命令已成功运行” 如何删除这些消息?如果这不能解决您的问题,请编辑您的问题并进一步解释: command |find /v /i "Command ran successfully" >file.txt Command>>file.txt:我的命令在file.txt文件中返回“Command run successfully”。我怎样才能防止这种情况?

我将命令的输出重定向到一个.txt文件,并得到如下输出

“命令已成功运行”


如何删除这些消息?

如果这不能解决您的问题,请编辑您的问题并进一步解释:

command |find /v /i "Command ran successfully" >file.txt

Command>>file.txt:我的命令在file.txt文件中返回“Command run successfully”。我怎样才能防止这种情况?