Windows Server 2003 in a Nutshell
| ftype |
Displays or modifies file types for file extension associations.
Syntax
ftype [ FileType [=[ OpenCommand ]]]
Options
- None
-
Displays all file types that have open commands defined
- FileType
-
Specifies the file type to display or change
- OpenCommand
-
Specifies the command used to open this type of file
Examples
Display all types that have open commands defined:
ftype AIFFFile="C:\Program Files\Windows Media Player\wmplayer.exe" /Open "%L" ASFFile="C:\Program Files\Windows Media Player\wmplayer.exe" /prefetch:7 /Open "%L" ASXFile="C:\Program Files\Windows Media Player\wmplayer.exe" /Open "%L" AUFile="C:\Program Files\Windows Media Player\wmplayer.exe" /Open "%L" AVIFile="C:\Program Files\Windows Media Player\wmplayer.exe" /prefetch:8 /Open "%L" batfile="%1" %* Briefcase=explorer.exe %1 ...
Display open command for txtfile file type:
ftype txtfile txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
Notes
Use ftype FileType= to delete the open command string for the specified file type, then use the assoc command to create a new file association.
See Also
assoc , Files and Folders