Using PFA in Scripted Command?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Using PFA in Scripted Command?

Post by MBaas »

I have a toolbar which runs a PDF-File. Since the *.PDF-Link is hijacked by IE, I would like to use my favourite viewer - to which I linked through a PFA. Unfortunately that viewer is not installed in the same dir on all machines, so I cannot refer to it using an absolute path. Can I somehow use the PFA? (It only has the cmd "PDFXCview", but that finds the tool on all machines - I wish I could use that info, but when I tried the command

Code: Select all

run "PDFXCview ""file name of my PDF""" 
I got the msg that the system could not find the specified file...
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Using PFA in Scripted Command?

Post by bdeshi »

use the "open" scripting command. by default it uses XY's Portable File Association to open a given file.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: Using PFA in Scripted Command?

Post by MBaas »

THANK YOU! Problem solved :-)
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Using PFA in Scripted Command?

Post by bdeshi »

Great. And for future reference, sc openwith should accept registered program names like "PDFXCView".
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply