Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Let's see if you can help me.
is it possible to read TXT file in Dos mode?
I have a readme.txt file on my bootdisk, what to do to view that file when i boot my system using boot cd?
Ok, when i type "A:\type readme.txt" the file loads... But, it was tooo long as i cant read what was there in the top.. And when i use "A:\type readme.txt|more" my computer says, this command wont work in DOS, well, if i try the same from Windows command propt, it works nice..
So, my doubt is, how can i read that long text file when i boot my computer with a cd or a floppy? Hlep me!

If you can change the TXT file to anything you want, you could change it to a BATCH file. Then CALL the text.bat file. In the file, start with an @ECHO OFF, then at the start of each line, add an ECHO. statement with one line of the text you want to display. At about 22 lines down ad a PAUSE statement to stop the display. Any key will then display the "next page", until done. The batch will then exit back to the calling batch file.
Now, if you can't, then make sure a program in the boot image that can display the file. For example you could use the EDIT program do display it. The user could then scroll up and down to read any message you selected. They would have to know how to exit. There are also many "README.EXE program around that will do what you want to do.

Alternatively use type FILENAME.TXT /p for a pageful at a time where filename is the name of the file.
HTH
Woof

Woof, I haven't checked other versions of DOS, but in Win95 DOS, the /P switch is not a valid switch. That's why I suggested using edit, rather than type. I thought that the /P switch would work & was going to suggest it, but I tried it first. (My DOS is more than a little bit rusty. LOL)
HTH
Dave

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |