openwith file

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
swan_x
Posts: 321
Joined: 08 Oct 2009 12:27

openwith file

Post by swan_x »

i have one script on manage commands with keyboard shortcut assigned:

openwith "D:\apps\Calibre\edit-book.exe", , "D:\000\ePub\nevermind\ab.epub";

what this correct syntax to open all .epub files (not only single title) with my prog on this specific folder?? I have only one file each time, but the title change...
with *.epub not work correctly... or openwith support only one single file??

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: openwith file

Post by highend »

Maybe reading would solve your problem(s)...

Code: Select all

help "idh_scripting_comref.htm#idh_sc_openwith";
It even has an example that perfectly matches...
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 321
Joined: 08 Oct 2009 12:27

Re: openwith file

Post by swan_x »

I have read help file, before your post, and after your post...
but the help file treat on example with one file selected...
I want, with my assigned letter, run my program with each file ePub on this folder mentioned on my previous post, without file selection...
I repeat, I have only one file ePub on this folder, but every time the name of this file is different...it’s possible this?

jupe
Posts: 2798
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: openwith file

Post by jupe »

Something like this should work:

Code: Select all

openwith "D:\apps\Calibre\edit-book.exe", , listfolder("D:\000\ePub\nevermind", "*.epub", 1);

swan_x
Posts: 321
Joined: 08 Oct 2009 12:27

Re: openwith file

Post by swan_x »

@ jupe
oh yeeesss! many tanxs to your great reply!

Post Reply