Command Prompt for Windows




Command FILETYPE

Function:

Determine whether a file contains text or binary data. The file type is stored in an environment variable called FILETYPE.

Syntax:

FILETYPE [drive:][path]filename
[drive:][path]filenameSpecifies the file name.

Note:

When the specified file contains text then the environment variable will be set to TEXT. Similarly, when the file does not contain text then the environment variable will be set to BINARY.

Also see Batch Files.