Type
Updated: January 21, 2005
Syntax
Parameters
Remarks
- 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.
Examples
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 |
Italic | Information that the user must supply |
Bold | 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 |