中国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-12 08:20
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Newcomer asks: How to save the DOS running result as a TXT document, urgent!
Printable Version  1,718 / 3
Floor1 open0121 Posted 2010-12-07 17:11
新手上路 Posts 1 Credits 4
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!!!

(注:“前辈”在这里保留拼音是因为原句中就是用的中文拼音,按照要求保留原样即可,不需要额外翻译。)
Floor2 DXSX Posted 2010-12-07 18:03
中级用户 Posts 147 Credits 247
Use the redirection symbol >
For example: dir >x.txt means to redirect the execution result of the dir command to x.txt
Floor3 HAT Posted 2010-12-07 23:00
版主 Posts 5,017 Credits 9,023
Are you closing DOS? Or CMD?
Floor4 DengKen Posted 2010-12-10 20:57
新手上路 Posts 4 Credits 6
Under pure DOS, you can use the > and >> symbols to complete. Under CMD, there can also be 1> 2> and so on.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023