Microsoft DOS assoc command
The assoc command displays the file association for each of the different file extensions on the computer.
The assoc command is an internal command that is available in the below Microsoft operating systems.
Displays or modifies file extension associations
|.ext||Specifies the file extension to associate the file type with|
|fileType||Specifies the file type to associate with the file extension|
Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current file association for that file extension. Specify nothing for the file type and the command will delete the association for the file extension.
Displays a file association of each of the file extensions on the computer.
Displays the file extension for a .txt file as shown below.