China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-03 13:01
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Fixed] How can I copy files silently? View 836 Replies 5
Original Poster Posted 2007-02-16 08:57 ·  中国 山东 德州 联通
初级用户
Credits 30
Posts 11
Joined 2007-02-13 14:08
19-year member
UID 79404
Gender Male
Status Offline
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 ]
Floor 2 Posted 2007-02-16 09:03 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline

xcopy a.dat x:\ >NUL


or


copy a.dat x:\ >NUL
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 3 Posted 2007-02-16 09:09 ·  中国 山东 德州 联通
初级用户
Credits 30
Posts 11
Joined 2007-02-13 14:08
19-year member
UID 79404
Gender Male
Status Offline
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!
Floor 4 Posted 2007-02-16 12:20 ·  中国 福建 厦门 电信
新手上路
Credits 10
Posts 5
Joined 2006-07-17 16:58
20-year member
UID 58742
Status Offline
Redirecting to null, right?
Floor 5 Posted 2007-02-16 12:51 ·  中国 山东 德州 联通
初级用户
Credits 30
Posts 11
Joined 2007-02-13 14:08
19-year member
UID 79404
Gender Male
Status Offline
copy a.dat x:\ >NUL
Like this.
It works fine in a batch file, OK, thanks!
Floor 6 Posted 2007-02-16 22:26 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
Awesome
Forum Jump: