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-06-23 07:29
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to save the content displayed in DOS as a text file? (Urgent) View 2,418 Replies 7
Original Poster Posted 2004-06-18 00:00 ·  中国 海南 海口 电信
初级用户
Credits 175
Posts 19
Joined 2003-03-04 00:00
23-year member
UID 1044
Gender Male
Status Offline
How to save the content displayed in DOS as a text file? (urgent)
Floor 2 Posted 2004-06-18 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
You need to specify what is displayed in DOS. There are hundreds of commands in DOS, and each command may display information. Take dir as an example.

Suppose you run the dir command. The dir will list all file and directory information in the current directory. Now you want to save the listed information to a text file. Then you can use the following command:
dir > list.txt

The > sign in this command will redirect the display content of dir to the list.txt file. This is called input/output redirection in DOS. There is also a | line representing pipeline operation, which means to use the output of one command as the input of another command. For example:
echo y | del *.*

This command uses the y output by echo as the input of the del *.* command, and the del *.* does not need to wait for you to enter y to continue the deletion operation. If you are interested, you can check the redirection (> , > and pipeline operation (|) under DOS.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 3 Posted 2004-06-19 00:00 ·  中国 山东 济南 莱芜区 联通
高级用户
★★
Credits 736
Posts 210
Joined 2004-04-12 00:00
22-year member
UID 22336
Gender Male
From 中國
Status Offline
What the person upstairs said is very clear. Just follow it.
Floor 4 Posted 2004-06-20 00:00 ·  中国 海南 海口 电信
初级用户
Credits 175
Posts 19
Joined 2003-03-04 00:00
23-year member
UID 1044
Gender Male
Status Offline
Thank you very much to the two enthusiastic people upstairs
I'll give it a try
Floor 5 Posted 2004-06-24 00:00 ·  美国 俄克拉荷马大学
中级用户
★★
Credits 246
Posts 53
Joined 2004-06-07 00:00
22-year member
UID 26229
Gender Male
Status Offline
You can try DN. After running DN, press CTRL+F4 to close its window, then run your corresponding software. When the needed screen appears, press the SHIFT+ALT+INS key combination. You won't be disappointed.
天下石姓论坛欢迎你!百度一下“天下石姓”吧!
Floor 6 Posted 2004-06-24 00:00 ·  美国 俄克拉荷马大学
中级用户
★★
Credits 246
Posts 53
Joined 2004-06-07 00:00
22-year member
UID 26229
Gender Male
Status Offline
Then open the built-in editor of DN (just press ALT+Q), paste the captured text content into the editor (you can press SHFT+INS key), and the next step is to save as...
By the way, this English shouldn't be a problem, right?
天下石姓论坛欢迎你!百度一下“天下石姓”吧!
Floor 7 Posted 2004-06-25 00:00 ·  中国 山东 济南 莱芜区 联通
高级用户
★★
Credits 736
Posts 210
Joined 2004-04-12 00:00
22-year member
UID 22336
Gender Male
From 中國
Status Offline
What tool is DN? Please make it clear for the person above, but it can be done without other tools. The description from the 2nd floor is very good.
Floor 8 Posted 2004-06-26 00:00 ·  中国 湖南 衡阳 电信
初级用户
Credits 196
Posts 20
Joined 2004-06-20 00:00
22-year member
UID 27126
Gender Male
Status Offline
If you run DOS under WINDOWS, you can still record it with a screen capture software.
Forum Jump: