Forrest logo
back to the ftype tool

ftype:tldr:110ea

ftype: Set the associated program for a specific file type.
$ ftype ${file_type}="${path-to-executable_file}"
try on your machine

The command ftype ${file_type}="${path-to-executable_file}" is used in the Windows command prompt to associate a specific file type with a specific executable file.

Here is a breakdown of the command:

  • ftype: This is the command used to manage file types in Windows.

  • ${file_type}: This is a placeholder for the file type you want to associate with the executable file. For example, you might use .${extension} to specify a specific file extension like .txt or .docx.

  • "${path-to-executable_file}": This is the full path to the executable file that you want to associate with the file type. For example, "C:\Program Files\MyApp\myapp.exe".

By running this command, you are essentially telling Windows that whenever a file with the specified file type is opened or executed, it should use the specified executable file to handle it.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ftype tool