Forrest logo
back to the assoc tool

assoc:tldr:0003d

assoc: List all associations between file extensions and file types.
$ assoc
try on your machine

The "assoc" command in computer systems is a short form for "association." It is used to display or modify file type associations in a Windows operating system.

When used without any parameters, the "assoc" command lists all the file extensions and their associated file types. For example, if you enter "assoc" in the command prompt, it will display a list of file extensions along with their respective file types.

Additionally, you can use the "assoc" command with parameters to modify file associations. For instance, if you want to change the association of a specific file extension, you can use the command in the following format:

assoc .=

For example, if you want to associate ".txt" files with a different file type, you can use the command:

assoc .txt=TextDocument

This will change the file association of ".txt" files to the "TextDocument" file type.

Overall, the "assoc" command assists in managing and configuring how file types are associated with specific programs in the Windows operating system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the assoc tool