Computer and Software Support

DOS Command Assoc

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

To display the current file associations, type ASSOC without the parameters.

If ASSOC is typed with just the file extension, it will display 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.


assoc - displays the file association of each of the file extensions on the computer.

assoc.txt - displays the file extension for a .txt file as follows      .txt=txtfile

This page is from I pasted it on my website to avoid possible broken links. For further help with DOS commands, Check out.