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

How to set what Program you want your PDF file open within CMD?

assoc .pdf=pdffile

ftype pdffile=Architect.exe %1 %*


Start architect with cmd not working
Odelgo FearonComputer EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITEnd-user supportCommented:
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 EngineerAuthor Commented:
Please see attachment.  not sure if I do it right. #NVIT @NVIT
NVITEnd-user supportCommented:
That looks ok. Does it work?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Note that you dropped a f in your assoc ...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.