Assoc: defines the file type based on the file extension. You can use this command to display or modify the file extension Association.
For example:
. Bat = batfile
. Xls = excel. sheet.8
FTYPE: defines the open mode based on the file type. You can use this command to display or modify the file types used in file extension Association.
For example:
Batfile = "% 1" % *
Excel. sheet.8 = "C: \ Program Files \ Microsoft Office \ excel. EXE"/E
Note:
The basic format of FTYPE is FTYPE [file type [= [open mode/Program]
For example, in the above example, FTYPE exefile1_notepad.exe % 1 indicates that all files of the type EXE (exefile is expressed as EXE files) are opened through the Notepad program, % 1 indicates the program to be opened (that is, the program at double-click ).
FTYPE exefile = % 1% * indicates that all EXE files run directly (exe can run directly, so % 1 of the program itself can be used ), % * indicates all parameters after the program command (this is why the EXE file can run with parameters ).
Therefore, if you find that there is a problem with the system file type and association, you can use these two commands to reset it.