tldr/pages/windows/assoc.md

21 lines
500 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}}`
2022-12-20 01:48:16 +00:00
- View the output of `assoc` one screen at a time:
`assoc | {{more}}`