NT Syntax

TYPE

Display the contents of a text file or files.

syntax
      TYPE [drive:]pathname(s)

If more than one file is specified the filenames are included in the output.
If a wildcard is used the filenames are not displayed.

Output can be redirected into a new file:

TYPE file.txt > Newfile.txt

Output can be appended to an existing file:

TYPE file.txt >> ExistingFile.txt

To do the same with user console input :

TYPE CON > Newfile.txt

This will require a CTRL - Z to indicate end of file.

When using redirection to SORT a file the TYPE command is used implicitly
For example:

SORT < MyFile.txt

"There are few more impressive sights than a Scotsman on the make" - Sir James Barrie

Related Commands:

FOR /F
SORT
List - Text Display and Search Tool (Win 2K ResKit)

Equivalent Linux BASH commands:

cat - Display the contents of a file



Simon Sheppard
SS64.com