从批处理文件中设置文件关联 [英] Set file association from batch file

查看:651
本文介绍了从批处理文件中设置文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从一个批处理文件中设置文件关联。我想文件关联.PDF与福昕阅读器。事情是我有福昕阅读器的便携式版本,以便它不没有任何注册表项。我已经搜查,但有一个如何做没有干净的解释,什么语法使用。

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.

推荐答案

使用批处理,请使用以下命令:

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".

这篇关于从批处理文件中设置文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆