简体   繁体   English

如何抑制Windows命令输出?

[英]How to suppress windows command output?

I'm moving thousands of files through the command line and it prints all the file names to the console. 我正在通过命令行移动数千个文件,它将所有文件名打印到控制台。 Is there a way to ignore the output so it can go faster? 有没有办法忽略输出,以便可以更快地输出? Something like piping to /dev/null in Linux. 类似于在Linux中管道传输到/ dev / null的东西。

Thanks 谢谢

bla-bla-bla-bla-bla-bla-bla-bla 2> nul

Looks like this will do the trick: 看起来这可以解决问题:

MOVE oldfile.wp newfile.doc >nul

Source: http://ss64.com/nt/move.html 资料来源: http : //ss64.com/nt/move.html

我有同样的问题,我这样解决:

move aaa bbb >nul 2>nul

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM