FTYPE

RECENT NEWS

12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...

TESTIMONIALS

Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...

More...

FTYPE

Displays or changes file types for associations.

Syntax:

FTYPE [FileType[=[OpenCommandString]]]

FileType – file type to be displayed or changed.

OpenCommandString – executable file with parameters that are called when user tries to open a file.

Usage:

Without parameters FTYPE displays all file types and associated command strings.

Extension is not the same with the file type. For example, both .BAT and .CMD extensions are batch files.

In OpenCommandString you can use the following parameters:

%0 or %1 – Name of the file being launched by user.

%* ‑ All of the parameters.

%2, %3, … ‑ The first parameter (%2), the second parameter (%3), etc.

%~N ‑ All of the remaining parameters starting with the Nth parameter, (N is number from 2 to 9).

To define the association completely you should use FTYPE together with ASSOC.

Examples:

FTYPE txtfile=notepad.exe %1

 

Subscribe batch files programming newsletter (no spam):

Subscribe

Unsubscribe