Microsoft DOS Type command

Quick links

About type
Availability
Syntax
Examples

About type

Allows the user to see the contents of a file.

To edit the files, the user would need to use either edit or copy con.

Availability

The type command is an internal 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 the contents of text files.

Type [drive:][path]filename

Examples

Type c:\autoexec.bat

This would allow you to look at the autoexec.bat file if it exists.

Additional information

  • See our type definition for further information and related links on this term.