中国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-13 02:12
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Question about displaying specific lines from a text file
Printable Version  653 / 5
Floor1 topway Posted 2003-11-06 00:00
中级用户 Posts 47 Credits 260
How can I use DOS commands to display lines X through Y of a text file on the screen?
Floor2 disk Posted 2003-11-06 00:00
初级用户 Posts 19 Credits 158
Use a computer
Floor3 topway Posted 2003-11-06 00:00
中级用户 Posts 47 Credits 260
For example: take the readme.txt file below. If I want to display "1. If the Operating System's。。。。。 Device Manager." on the DOS screen, how should I do it?

《readme.txt》
______________________________________________________________________
For Windows ME:

1. If the Operating System's New Hardware Wizard prompts you that
"New Hardware Found" for the "PCI Ethernet Controller", you should
click "Next" until "Finish" is clicked and without specifying
location of the driver. You will see the "PCI Ethernet Controller"
in the Device Manager.

2. Then you can install or update the NDIS driver with "setup" or
"setup -s" command:
a) setup: The InstallShield will prompt you the steps to install
or upgrade the driver.

b) setup -s: The InstallShield will complete the installation or
upgrade without prompting you any instruction.

You need to reboot the system immediately after the Install shield
completes the installation/upgrade.

3. Do not click "Cancel" during New Hardware Wizard searches for the
driver.
_______________________________________________________________________
Floor4 topway Posted 2003-11-15 00:00
中级用户 Posts 47 Credits 260
Using the type readme.txt command will display the entire contents of readme.txt;
using the type readme.txt | more command will display the entire contents of readme.txt page by page, pausing when one screen is full;
how can I use DOS commands to display only line 2 through line 5 of readme.txt on the screen?
Please give me some guidance, experts! Thanks!!
Floor5 jk_jzit Posted 2003-11-22 00:00
初级用户 Posts 7 Credits 135
Use type readme.txt/p or /w
Floor6 龙王 Posted 2003-11-22 00:00
银牌会员 Posts 334 Credits 1,186
I also want to know how to display specific lines of a text file.
Can selective display be done?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023