assoc (windows)

Posted by tldr
Public (Editable by Users)

Display or modify file extension associations. More information: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/assoc .

Shell
None
Edit
# Display all associated filetypes:
assoc

# Display the associated filetype for a specific extension:
assoc {{.txt}}

# Modify the associated filetype for a specific extension:
assoc {{.txt}}={{txtfile}}