Microsoft DOS more command

Quick links

About more
Availability
Syntax
Examples

About more

More allows information to be displayed one page at a time.

Availability

The more.com command is an external command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax

Displays output one screen at a time.

MORE [drive:][path]filename
MORE < [drive:][path]filename
command-name | MORE [drive:][path][filename]

[drive:][path]filenameSpecifies file(s) to display one screen at a time
command-nameSpecifies a command whose output will be displayed.

Microsoft Windows 2000 and Windows XP syntax

Displays output one screen at a time.]

MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [drive:][path]filename
command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]
MORE /E [/C] [/P] [/S] [/Tn] [+n] [files]

[drive:][path]filenameSpecifies a file to display one screen at a time.
command-nameSpecifies a command whose output will be displayed.
/EEnable extended features
/CClear screen before displaying page
/PExpand FormFeed characters
/SSqueeze multiple blank lines into a single line
/TnExpand tabs to n spaces (default 8)

Switches can be present in the MORE environment variable.

+nStart displaying the first file at line n
filesList of files to be displayed. Files in the list are separated by blanks.

If extended features are enabled, the below commands are accepted at the -- More -- prompt:

P nDisplay next n lines
S nSkip next n lines
FDisplay next file
QQuit
=Show line number
?Show help line
<space>Display next page
<ret>Display next line

Microsoft Windows 2000 and Windows XP recovery console command syntax

Displays a text file to the screen.

more [filename]

Examples

dir | more

Allows you to view the directory listing one page at a time, if applicable. This would be the same as doing dir /p.

more myfile.txt

Would display the contents of a page one page at a time. Pressing space would go to the next page and pressing enter would go down one line at a time.