Set file association from batch file

我们两清 提交于 2019-12-11 15:35:06

问题


I want to set file association from a batch file. I want to associate .pdf files with foxitreader. The thing is I have the foxitreader portable edition so it doesn not have any registry key. I have searched but there is no clean explanation of how to do and what syntaxes to use.


回答1:


Using batch, use the following commands:

ftype Foxit.Document=<replace with foxit full path name>
assoc .pdf=Foxit.Document

But it could be more convenient to use "Open with", "Select program" and "Always use this program".



来源:https://stackoverflow.com/questions/8553040/set-file-association-from-batch-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!