How can i change what program i want PDF file to open with in CMD

Odelgo Fearon
Odelgo Fearon used Ask the Experts™
on
How to set what Program you want your PDF file open within CMD?

assoc .pdf=pdffile

ftype pdffile=Architect.exe %1 %*

Also

Start architect with cmd not working
ftype.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
NVITEnd-user support

Commented:
Several things...

- Your ftype doesn't match the assoc
- Probably best practice to provide full path to program wrapped in quotes, and wrap file argument in quotes

Should be...

ftype pdffileprogram="c:\programfolder\Architect.exe" "%1" %*
assoc .pdf=pdffileprogram

Open in new window

Odelgo FearonComputer Engineer

Author

Commented:
Please see attachment.  not sure if I do it right. #NVIT @NVIT
NVITEnd-user support

Commented:
That looks ok. Does it work?
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015

Commented:
Note that you dropped a f in your assoc ...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial