Erfan
Erfan

Reputation: 349

Set file association from batch file

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.

Upvotes: 1

Views: 8762

Answers (1)

Gilles Arcas
Gilles Arcas

Reputation: 2712

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

Upvotes: 4

Related Questions