Specifications

202 Version 2.0
type
Summary
Sends the contents of a file to the standard output device.
Usage
type [-a|-u] file [file...]
Options
file
Name of the file to display.
-a
Display the file as if it is encoded as 8-bit ASCII
-u
Displays the file as if it were encoded as UCS-2 Unicode.
Description
This command sends the contents of a file to the standard output device. If no options
are used, then the command attempts to automatically detect the file type. If it fails,
then UCS-2 is presumed.
If the -a option is specified, the file is sent to the standard output device as a stream
of ASCII characters.
If the -u option is specified, the file is sent to the standard output device as a stream
of Unicode (UCS-2) characters.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or its
value was out of bounds.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
SHELL_NOT_FOUND The target file or set of files were not found.
Examples
To display a file in UCS-2 format: