中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-03 12:02
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Fixed] How can I copy files silently?
Printable Version  835 / 5
Floor1 psq Posted 2007-02-16 08:57
初级用户 Posts 11 Credits 30
How can I avoid showing these two lines of information after pressing Enter
D:\>xcopy a.dat x:\
D:a.dat
1 file(s) copied

[ Last edited by psq on 2007-2-15 at 08:11 PM ]
Floor2 redtek Posted 2007-02-16 09:03
金牌会员 Posts 1,147 Credits 2,902


or

Floor3 psq Posted 2007-02-16 09:09
初级用户 Posts 11 Credits 30
Thanks for the guidance!
I tried it, and the message is gone, but the DOS prompt doesn't appear either. I have to press CTRL+C!
Floor4 zjonah Posted 2007-02-16 12:20
新手上路 Posts 5 Credits 10
Redirecting to null, right?
Floor5 psq Posted 2007-02-16 12:51
初级用户 Posts 11 Credits 30
copy a.dat x:\ >NUL
Like this.
It works fine in a batch file, OK, thanks!
Floor6 gne3 Posted 2007-02-16 22:26
高级用户 Posts 252 Credits 526
Awesome
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023