The FTYPE command is a Windows CMD command used to define file types that are used to associate file extensions with programs. It is a powerful tool that allows users to customize the way Windows handles different types of files. This command is available in all versions of Windows, from Windows XP to Windows 10.

Syntax of the FTYPE Command

The syntax of the FTYPE command is as follows:

FTYPE [filetype[=[opencommandstring]]]

Where filetype is the file type to be associated with a program, and opencommandstring is the command that will be executed when the file type is opened.

Options of the FTYPE Command

The FTYPE command has two options:

  • /A – This option allows users to add a new file type.
  • /D – This option allows users to delete an existing file type.

Examples of the FTYPE Command

The following are examples of how to use the FTYPE command:

  • To add a new file type, use the following command: FTYPE /A filetype=opencommandstring
  • To delete an existing file type, use the following command: FTYPE /D filetype

How to Use the FTYPE Command

Using the FTYPE command is relatively straightforward. To add a new file type, use the /A option, followed by the file type and the command that will be executed when the file type is opened. To delete an existing file type, use the /D option, followed by the file type.

For example, to add a new file type for the .txt extension, use the following command:

FTYPE /A txt=notepad.exe %1

This command will associate the .txt extension with the Notepad program, so that when a .txt file is opened, Notepad will be used to open it.

To delete the file type associated with the .txt extension, use the following command:

FTYPE /D txt

This command will delete the file type associated with the .txt extension.

Conclusion

The FTYPE command is a powerful tool that allows users to customize the way Windows handles different types of files. It is a useful tool for users who want to customize their Windows experience and make it more efficient. With the FTYPE command, users can easily add and delete file types, making it easy to customize the way Windows handles different types of files.

Leave a Reply