------------------------- MS-DOS v6.22 Help: TYPE --------------------------
<Notes> <Examples> <Index>
----------------------------------------------------------------------------
TYPE
Displays the contents of a text file.
Use the TYPE command to view a text file without modifying it.
Syntax
TYPE [drive:][path]filename
Parameter
[drive:][path]filename
Specifies the location and name of the file that you want to view.
Related Commands
For information about displaying filenames and file sizes, see the <DIR>
command.
For information about displaying text files one screen at a time, see the
<MORE> command.
***
<Syntax> <Examples>
----------------------------------------------------------------------------
TYPE--Note
Displaying binary files
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, you should avoid using the TYPE command to
display binary files.
***
<Syntax> <Notes>
----------------------------------------------------------------------------
TYPE--Examples
If you want to display the contents of a file named HOLIDAY.MAR, type the
following command:
type holiday.mar
If the file you want to display is long, you can use the MORE command along
with TYPE, as shown in the following command, to display the file's contents
one screen at a time:
type holiday.mar | more
Before using a pipe (|) for redirection, you should set the TEMP environment
variable in your AUTOEXEC.BAT file.
***
----------------------------------------------------------------------------
<Top of page>
|
Last update: December 07, 2002 14:45 by Content © 1997 Microsoft Corporation All else © 2000-2005 |