ftype |
Displays or modifies file types for file extension associations.
ftype [ FileType [=[ OpenCommand ]]]
Displays all file types that have open commands defined
Specifies the file type to display or change
Specifies the command used to open this type of file
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
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.
assoc , Files and Folders