filetype
The filetype
sample program demonstrates how to use the Viewing API to obtain a document's type.
To start the filetype
program, enter the following command at a DOS prompt or in the Run dialog box:
filetype file
where file
includes the complete path and file name.