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-15 11:34
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How can DOS command output be shown on screen and also written to a file? View 1,675 Replies 4
Original Poster Posted 2010-04-10 07:54 ·  中国 广东 东莞 电信
新手上路
Credits 6
Posts 2
Joined 2010-04-09 12:38
16-year member
UID 164153
Gender Male
Status Offline
I'm using the DOS command
dir/s>a.txt
This command can write the DIR output to A.TXT, but the DIR contents are not shown on the screen.
How can I have it display on the screen and also write to A.TXT at the same time?
Floor 2 Posted 2010-04-10 09:32 ·  中国 重庆 电信
新手上路
Credits 14
Posts 9
Joined 2010-01-15 11:13
16-year member
UID 158705
Gender Male
Status Offline
Floor 3 Posted 2010-04-12 08:12 ·  中国 广东 东莞 电信
新手上路
Credits 6
Posts 2
Joined 2010-04-09 12:38
16-year member
UID 164153
Gender Male
Status Offline
Not that kind of function. What I want is to display it while writing it to the file at the same time. Yours displays it only after it finishes writing.
Floor 4 Posted 2010-04-12 09:32 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Just use mtee.exe

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 5 Posted 2010-04-22 00:12 ·  英国 苏塞克斯大学
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
OP wants to do parallel processing~~
Hehehe......
Forum Jump: