Search notes:

cmd.exe - assoc

assoc allows to display or modify the associations between a filename extension (suffix) and its filetype.
The following command displays the filetype for the suffix .vbs:
C:\> assoc .vbs
.vbs=VBSFile
assoc can then be used to return a more friendly name for the filetype.
C:\> assoc VBSFile
VBSFILE=VBScript Script File
ftype can be used to reveal what program is used by default to start a file with a given extension:
C:\> ftype VBSFile
VBSFile="%SystemRoot%\System32\WScript.exe "%1" %*

See also

ftype
show-winFileExtAssociation
HKEY_CLASSES_ROOT\.ext
assoc is affected by whether command extensions are enabled or disabled.
Windows Settings: Choose default apps by file type
cmd.exe: Built-in commands

Index