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-13 02:03
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How to Display Multi-Page Files in the DOS DIR Command View 1,374 Replies 4
Original Poster Posted 2003-10-17 00:00 ·  中国 浙江 温州 联通
初级用户
Credits 134
Posts 7
Joined 2003-10-01 00:00
22-year member
UID 10569
Gender Male
Status Offline
The system crashed and ntldr is missing. I copied NTLDR over, and when I use the DOS DIR command it shows multiple pages of files, and I can only see the last page of files. How can I display a single page of files?
Floor 2 Posted 2003-10-17 00:00 ·  中国 吉林 长春 教育网
初级用户
Credits 131
Posts 6
Joined 2003-08-30 00:00
22-year member
UID 9209
Gender Male
Status Offline
dir /p/w
p means paged display
w means line-by-line display, that is, it only shows the file (folder) names and does not show other attributes.
Floor 3 Posted 2003-10-18 00:00 ·  中国 河南 安阳 联通
银牌会员
★★★
Credits 1,186
Posts 334
Joined 2003-05-30 00:00
23-year member
UID 2626
Gender Male
Status Offline
There is an even better way.
You can use redirection to save what is displayed to a file.
Add >filesname.txt at the end of the command line
Floor 4 Posted 2003-10-19 00:00 ·  中国 上海 鹏博士宽带
初级用户
Credits 127
Posts 5
Joined 2003-09-02 00:00
22-year member
UID 9365
Gender Male
Status Offline
dir |mroe

Paged display
Floor 5 Posted 2003-10-27 00:00 ·  中国 浙江 温州 联通
初级用户
Credits 134
Posts 7
Joined 2003-10-01 00:00
22-year member
UID 10569
Gender Male
Status Offline
Many thanks to the several posters above.

Every reply from you has been a great help and encouragement to me!
Forum Jump: