Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


Displays the contents of a text file. Use the type command to view a text file without modifying it.


type [Drive:][Path] FileName

[Drive:][Path] FileName
Specifies the location and name of the file or files that you want to view. Separate multiple file names with spaces.

Displays help at the command prompt.

  • If you are using an NTFS drive and FileName contains spaces, use quotation marks around the text (that is, "File Name").

  • If you display a binary file or a file created by a program, you may see strange characters on the screen, including formfeed characters and escape-sequence symbols. These characters represent control codes used in the binary file. In general, avoid using the type command to display binary files.


To display the contents of a file named Holiday.mar, type:

type holiday.mar

To display the contents of a lengthy file one screen at a time, type:

type holiday.mar | more

Formatting legend


Format Meaning


Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft