2019-03-10 12:31:47 +00:00
|
|
|
# assoc
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 显示或修改文件扩展名关联。
|
2022-10-04 16:06:23 +01:00
|
|
|
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/assoc>.
|
2019-03-10 12:31:47 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示所有当前文件扩展名关联的列表:
|
2019-03-10 12:31:47 +00:00
|
|
|
|
|
|
|
`assoc`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定扩展名的关联文件类型:
|
2019-03-10 12:31:47 +00:00
|
|
|
|
|
|
|
`assoc {{.txt}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 将文件扩展名与特定的文件类型关联:
|
2019-03-10 12:31:47 +00:00
|
|
|
|
|
|
|
`assoc {{.txt}}={{txtfile}}`
|