Associates an extension with a file type (FTYPE), displays existing associations, or deletes an association. See also FTYPE.
List associations for all file extensions:
$ assoc .386=vxdfile .3g2=WMP11.AssocFile.3G2 .3ga=VLC.3ga .3gp=WMP11.AssocFile.3GP .3gp2=WMP11.AssocFile.3G2 .3gpp=WMP11.AssocFile.3GP ... lots more associtaions
List associations for a single extensions:
$ assoc .doc .doc=Word.Document.8
List associations matching
$ assoc | find ".doc" .doc=Word.Document.8 .dochtml=wordhtmlfile .docm=Word.DocumentMacroEnabled.12 .docmhtml=wordmhtmlfile .docx=Word.Document.12 .docxml=wordxmlfile
- assoc at ss64.com
- assoc at Microsoft
- Making Python scripts run on Windows without specifying “.py” extension at stackoverflow
$ assoc /? Displays or modifies file extension associations ASSOC [.ext[=[fileType]]] .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.