这是一个批处理命令,用于将扩展名与文件类型(FTYPE)关联,显示现有关联或删除关联。
assoc – Displays all the file extensions assoc | find “.ext” – Displays only those file extensions which have the extension ext.
@echo off assoc > C:\lists.txt assoc | find “.doc” > C:\listsdoc.txt
文件关联列表将路由到文件lists.txt。以下输出显示了运行上述批处理文件后,listsdoc.txt文件中的内容。
链接:https://www.learnfk.comhttps://www.learnfk.com/batch-script/batch-script-assoc.html
来源:LearnFk无涯教程网
.doc=Word.Document.8 .dochtml=wordhtmlfile .docm=Word.DocumentMacroEnabled.12 .docmhtml=wordmhtmlfile .docx=Word.Document.12 .docxml=wordxmlfile
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)