tldr/pages/windows/assoc.md

17 lines
428 B
Markdown
Raw Normal View History

2018-09-21 20:03:18 +01:00
# assoc
2022-08-23 20:20:07 +01:00
> Display or change associations between file extensions and file types.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/assoc>.
2018-09-21 20:03:18 +01:00
2022-08-23 20:20:07 +01:00
- List all associations between file extensions and file types:
2018-09-21 20:03:18 +01:00
`assoc`
2022-08-23 20:20:07 +01:00
- Display the associated file type for a specific extension:
2018-09-21 20:03:18 +01:00
`assoc {{.txt}}`
2022-08-23 20:20:07 +01:00
- Set the associated file type for a specific extension:
2018-09-21 20:03:18 +01:00
2022-08-23 20:20:07 +01:00
`assoc .{{txt}}={{txtfile}}`