Use filename without full path in 'open with'
Hi, this question is pretty hard to search, since it could be paraphrased in many different ways.
I am talking about 'Open With' function of Calibre library. If I understand correctly, there are no tags which could be substituted in command line with name, path, etc of opened file. Calibre simply adds full path of book file after all args.
What I want is to 1. change working directory to book directory and 2. run this command with filename of book only, without full path to it.
That is because I use external reader which saves bookmarks in separate file, but it creates it in 'working' folder, not in opened book folder. Development is stopped so I can't request a fix from it's creator.
I guess it would be possible to run cmd /c with required parameters IF there was a %filename% substitution tag but alas I didn't see anything like that in help.
Am I stuck?
|