DOS命令--ASSOC的学习

1 篇文章 0 订阅

首先,给出在DOS输入命令help ASSOC后,得到的文本:

Displays or modifies file extension associations

ASSOC [.ext[=[fileType]]]

  .ext      Specifies the file extension to associate the file type with
  fileType  Specifies the file type to associate with the file extension

Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current
file association for that file extension.  Specify nothing for the file
type and the command will delete the association for the file extension.

从上面的文字可以看出,·ASSOC`用来显示和改变文件扩展(应该就是文件的后缀,如.txt)的关联。

如果只是在DOS中输入ASSOC,那么会显示很多文件的扩展和文件的关联。
如果在命令ASSOC后加入扩展(如.txt)那么会显示这个扩展(.txt)的关联,得到的返回结果为.txt=txtfile.
如果输入命令ASSOC .txt=,也就是什么也不加( Specify nothing for the file
type),会删除文件的扩展和这个扩展的关联。

还可以参考博客

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值