{{Short description|Windows command}} {{lowercase}} __NOTOC__ {{Infobox Software | name = ftype | logo = | screenshot = | screenshot size = | caption = | developer = Microsoft | released = {{Start date and age|1996|08|24}} | latest release version = | latest release date = | operating system = Microsoft Windows | genre = Command | license = Proprietary commercial software | website = {{URL|https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ftype}} }} In computing, '''<code>ftype</code>''' is a command-line utility on Microsoft Windows that is used to display or change the link between a file type and an executable program.<ref>{{Cite web|url=https://www.computerhope.com/ftype.htm|title=MS-DOS and Windows command line ftype command|website=www.computerhope.com}}</ref>
==Overview== The <code>ftype</code> command was introduced as a shell builtin to cmd.exe with the release of Windows NT 4.0. It lists all Registry keys in HKEY CLASSES ROOT which contain the {{mono|shell\open\command}} subkey, and prints out the REG SZ contents of the {{mono|(default)}} value within these keys. Since it is an internal command built into <code>cmd.exe</code>, there is no <code>FTYPE.EXE</code>.
Because {{mono|(default)}} values in {{mono|HKEY_CLASSES_ROOT\<keyname>\shell\open\command}} contain information on how to open file types with registered extensions, this command essentially lists all registered file types, and which executables are used to open them, along with any switches used by the executable.<ref>{{Cite web|url=https://technet.microsoft.com/en-us/library/bb490912.aspx|title=Ftype}}</ref>
Multiple file extensions can be associated with the same file type and several file types can be linked to the same executable application.<ref>{{Cite web|url=https://ss64.com/nt/ftype.html|title=Ftype - File type - Windows CMD - SS64.com|website=ss64.com}}</ref>
==See also== *File format *Filename extension *File association
==References== {{Reflist}}
==Further reading== *{{Cite book|author-last=Hill|author-first=Tim|title=Windows NT Shell Scripting|date=1998|publisher=Macmillan Technical Publishing|isbn=978-1578700479|url-access=registration|url=https://archive.org/details/windowsntshellsc0000hill}} *{{Cite book|first=Æleen|last=Frisch|year=2001|title=Windows 2000 Commands Pocket Reference|publisher=O'Reilly|isbn=978-0-596-00148-3}} *{{Cite book|author=John Paul Mueller|year=2007|title=Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000|publisher=John Wiley & Sons|isbn=978-0470165799}}
==External links== {{Wikibooks|Guide to Windows Commands}} *[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ftype ftype | Microsoft Docs]
{{Windows commands}}
Category:Command-line software Category:Utility software for Windows
{{windows-stub}}