问题
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