Any ms dos experts in here...?

  • Thread starter Thread starter gabe c
  • Start date Start date
G

gabe c

Hi, sorry to bother everyone in this newsgroup but I have some serios
questions for ms dos...
1.What is a batch file?
2. How can I make a batch file tht will clear the screen and print the
contents of a specific file on the screen?
Thanks ahead of time and does anyone know of any msdos newsgroups?
 
Batch file is a series of DOS commands, or program names to be executed,
stored in a plain text file. It must have the extension .bat, like

showfile.bat.

The contents of the batch file you need could look like

cls
type filename.txt | more


the first line clears the screen, put the cursor on top line.
second line causes the named file to be displayed. the | more (vertical
bar)
causes the display to stop at a screenful, you press a key to see the next
screenful.
If you know your file is small, omit that.

Now if you want to supply the file to display at runtime.....

Val
(a user since DOS 1.0)
--
Bringing you BeadWizard Design Software
www.beadwizard.com
***************************
Practice safe eating -- always use condiments.
***************************

Hi, sorry to bother everyone in this newsgroup but I have some serios
questions for ms dos...
1.What is a batch file?
2. How can I make a batch file tht will clear the screen and print the
contents of a specific file on the screen?
Thanks ahead of time and does anyone know of any msdos newsgroups?
 
gabe c said:
Hi, sorry to bother everyone in this newsgroup but I have some serios
questions for ms dos...
1.What is a batch file?
2. How can I make a batch file tht will clear the screen and print the
contents of a specific file on the screen?
Thanks ahead of time and does anyone know of any msdos newsgroups?
A batch file is a text file that is run from a DOS window. An example would
be:
cls
type readme.txt
this text saved in a file called clsprn.bat would effectively clear the dos
window and display the contents of readme.txt to the window. To create this
file use wordpad or notepad. Save it to your HD with the extension of .bat.
Back in the good old days batch files allowed someone to run several
programs in sequence. In the initial version of windows a batch file
actually loaded it.
 
If the file is longer than the screen will hold, it will scroll off the
bottom of the page. To stop this, a better bat file is

cls
type readme.txt | more


Ed
 
Back
Top