开发者

Disable comments in stdout (DOS)

开发者 https://www.devze.com 2022-12-27 02:47 出处:网络
If I use Dos command \"copy\" to concatenate two files: copy a1.txt + a2.txt a.txt 开发者_StackOverflow社区I will have something like the following in stdout:

If I use Dos command "copy" to concatenate two files:

copy a1.txt + a2.txt a.txt

开发者_StackOverflow社区I will have something like the following in stdout:

C:\a1.txt
C:\a2.txt
   1 file(s) copied.

I do not want to have anything written in stdout, I mean, I just want to have 'a.txt' without those 3 lines written in stdout. Is there any way to do so? the reason is, I need speed and I know that any IO takes time.

Thanks, Shadi.


Redirect output to nul: copy a1.txt+a2.txt a.txt > nul.

0

精彩评论

暂无评论...
验证码 换一张
取 消