Home ยป FType Command – Syntax, Parameters and Examples

FType Command – Syntax, Parameters and Examples

The ftype command in Windows is used to display or modify the file type associations for a specific file extension.

The file type associations are used to determine which program is used to open a file when it is double-clicked.

In this article, we will discuss ftype command, its syntax, parameters, and examples.

Ftype Syntax

ftype [<filetype>[=[<opencommandstring>]]]

Ftype Parameters

ParameterDescription
<filetype>It specifies the file type to display or change.
<opencommandstring>It specifies the open command string to use when opening files of the specified file type.
/?It displays help at the command prompt.

How to Display the Current File Types?

To display the current file types that have open command strings defined, use the following command.

ftype

How to Display the Current Open Command String for the txtFile File Type?

To display the current open command string for the txtfile file type, use the following command.

ftype txtfile

How to Delete the Open Command String for a File Type?

To delete the open command string for a file type mytxt, use the following command.

ftype mytxt=

How to Modify the Program Used to Open File Type?

To modify the program used to open the .txt files to wordpad.exe, use the following command.

ftype .txt=wordpad.exe

Cool Tip: How to use Active Command!

Conclusion

The type command is a powerful tool for managing file type associations. It can be used to troubleshoot problems with opening files.

You can find more topics about Active Directory tools and PowerShell basics on the ActiveDirectoryTools home page.