禁用标准输出中的注释 (DOS)

发布于 2024-08-28 21:49:48 字数 280 浏览 2 评论 0原文

如果我使用 Dos 命令“copy”连接两个文件:

copy a1.txt + a2.txt a.txt

我将在 stdout 中看到类似以下内容:

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

我不想在 stdout 中写入任何内容,我的意思是,我只想拥有 'a.txt' 而没有这 3 个文件在标准输出中写入的行。有什么办法可以做到吗?原因是,我需要速度,而且我知道任何 IO 都需要时间。

谢谢, 沙迪。

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

copy a1.txt + a2.txt a.txt

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娜些时光,永不杰束 2024-09-04 21:49:48

将输出重定向到nul: copy a1.txt+a2.txt a.txt >空。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文