Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: MS DOS .: How to Display output one screen at a time using MORE command

How to Display output one screen at a time using MORE command

Display output one screen at a time. MORE can be used to run any executable command (or batch file) and pause the screen output one screen at a time. MORE can also be used to TYPE the contents of any file to the screen.

Syntax
      command | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]
MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < Pathname
MORE /E [/C] [/P] [/S] [/Tn] [+n] [Pathname(s)]

Key command : Any executable command or batch file
Pathname : The file to be displayed. (if more than one separate with spaces)
/E : Enable extended features
/E /C : Clear screen before displaying page
/E /P : Expand FormFeed characters
/E /S : Squeeze multiple blank lines into a single line
/E /Tn : Expand tabs to n spaces (default 8)

/E +n : Start displaying the first file at line n

You can create an environment variable called %MORE% and use this to supply any of the above switches.
When MORE is used without any redirection symbols it will display the % complete e.g.

MORE /E myfile.txt
--More (17%) --

If extended features are enabled, (/E) the following keystrokes can be used at the -- More -- prompt:

  <space>   Display next page
  <return>  Display next line
Q Quit
P n Display next n lines
S n Skip next n lines
F Display next file
= Show line number
? Show help line

How helpful was this article to you?

Related Articles

article How to Display messages on screen, turn command-echo on or off using ECHO Command
Display messages on screen, turn...

(No rating)  3-7-2008    Views: 329   
article How to Display memory usage using MEM command
Display memory usage. Syntax MEM...

(No rating)  3-9-2008    Views: 172   
article How to Display a list of files and subfolders DIR command
Syntax DIR [pathname(s)]...

(No rating)  3-7-2008    Views: 152   

User Comments

Add Comment
No comments have been posted.