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-12 07:32
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Newcomer asks: How to save the DOS running result as a TXT document, urgent! View 1,716 Replies 3
Original Poster Posted 2010-12-07 17:11 ·  荷兰 代尔夫特理工大学
新手上路
Credits 4
Posts 1
Joined 2010-12-06 17:47
15-year member
UID 178786
Gender Male
Status Offline
As the title says, I want to save the process and result of running a program under DOS into a TXT document, so that it is convenient to check at any time. Otherwise, you can't see it after closing DOS...
Please前辈teach me, thank you very much!!!

(注:“前辈”在这里保留拼音是因为原句中就是用的中文拼音,按照要求保留原样即可,不需要额外翻译。)
Floor 2 Posted 2010-12-07 18:03 ·  中国 辽宁 葫芦岛 联通
中级用户
★★
Credits 247
Posts 147
Joined 2009-04-09 20:52
17-year member
UID 142531
Gender Male
Status Offline
Use the redirection symbol >
For example: dir >x.txt means to redirect the execution result of the dir command to x.txt
Floor 3 Posted 2010-12-07 23:00 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Are you closing DOS? Or CMD?
Floor 4 Posted 2010-12-10 20:57 ·  中国 上海 电信
新手上路
Credits 6
Posts 4
Joined 2010-11-22 16:15
15-year member
UID 178050
Gender Male
Status Offline
Under pure DOS, you can use the > and >> symbols to complete. Under CMD, there can also be 1> 2> and so on.
Forum Jump: