CmdID

CmdID / Commands

ftype

Displays or modifies file types that are used in file name extension associations. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Displays or modifies file types that are used in file name extension associations. If used without an assignment operator (=), this command displays the current open command string for the specified file type. If used without parameters, this command displays the file types that have open command strings defined. NOTE: This command is only supported within cmd.exe and is not available from PowerShell. Though you can use cmd /c ftype as a workaround.

ftype [<filetype>[=[<opencommandstring>]]]
ftype
ftype txtfile
ftype example=
assoc .pl=PerlScript
ftype PerlScript=perl.exe %1 %*
set PATHEXT=.pl;%PATHEXT%
<filetype>Specifies the file type to display or change.
<opencommandstring>Specifies the open command string to use when opening files of the specified file type.
/?Displays help at the command prompt.
%0 or %1Gets substituted with the file name being launched through the association.
%*Gets all of the parameters.
%2, %3, ...Gets the first parameter (%2), the second parameter (%3), and so on.
%~<n>Gets all of the remaining parameters starting with the *n*th parameter, where n can be any number from 2 to 9.

Windows

from tldr-pages, CC BY 4.0

Display or modify file types used for file extension association.

Display a list of all file types

Display the associated program for a specific file type

ftype file_typeIdentify

Set the associated program for a specific file type

ftype file_type="path\to\executable_file"Identify