Type
Purpose:
Displays
the
contents
of
a
text
file
on
the
screen.
Syntax:
type
[drive:lfilename
Comments:
To
view
a
text
file
without
modifying it, you can use
the
type
command. (Use
dir
to
find
the
name
of
a file, and
edlin
to
change
the
contents
of
a file.)
Note that
when
you use
type
to
display a file that contains tabs,
all
the
tabs are expanded
to
8 spaces wide. Also,
if
you
try
to
display a binary file, you may
see
strange characters
on
the
screen,
including bells, formfeeds, and escape sequences.
Example:
If you
want
to display
the
contents
of
a file called holiday. mar,
you
would
type the following command:
type
holiday.mar
MS-DOS Commands
931
Type
Displaying a file