Type


Applies To: Windows Server 2008 R2,Windows Server 2008,Windows Server 2003 with SP1,Windows XP,Windows Server 2003,Windows Vista,Windows Server 2000,Windows Server 2003 with SP2,Windows Server 2003 R2,Windows 7

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

For examples of how to use this command, see Examples.

Syntax


Copy Code

type [<Drive>:][<Path>]<FileName>

Parameters

Parameter

Description

[<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.

Remarks

Examples

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


Copy Code

type holiday.mar

To display the contents of a lengthy file named Holiday.mar one screen at a time, type:


Copy Code

type holiday.mar | more

Additional references

Command-Line Syntax Key