assoc

Display or change associations between file extensions and file types. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/assoc.

assoc

assoc .txt

assoc .txt=txtfile

assoc | more