![]() |
#1 |
Connoisseur
![]() Posts: 52
Karma: 10
Join Date: Oct 2022
Device: none
|
command line not supported for portable calibre?
I need to use calibre-debug.exe to run plugins in command line
but for some reason I can't get it to work properly in portable version. Is there a straight or workaround solution? and if possible, I want to run it from anywhere, without changing directory first set by using CD C:\Program Files\Calibre2 which is not the issue for installed version os is Windows 10 64 bit. Last edited by tatagi; 01-21-2023 at 06:59 PM. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
"E:\Calibre Portable\Calibre\calibre-debug.exe" -g |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 52
Karma: 10
Join Date: Oct 2022
Device: none
|
Quote:
but still it's only after I change the directory to where calibre-debug.exe is for example, I should run cmd from start menu and type cd C:\Calibre Portable\Calibre after that calibre-debug or any other built-in command line tools work normally. I want to have this done without changing the directory. like C:\Users\Goto\Downloads\testfolder or any other folder. |
|
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Are you seeing an error message when you try to execute calibre-debug from the command line that looks like:
'D:\Calibre' is not recognized as an internal or external command, operable program or batch file. This is due to CMD not being happy with a space in a command string; To get around this, as in @theducks example, wrap the command in "s. I.e. do not use D:\Calibre Portable\Calibre\calibre-debug -g do use "D:\Calibre Portable\Calibre\calibre-debug" -g See How to Escape Spaces in File Paths on the Windows Command Line for a bit of help. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
I have not tried this myself, but I guess that is what the installed version is doing:
How to Add to Windows PATH Environment Variable |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Connoisseur
![]() Posts: 52
Karma: 10
Join Date: Oct 2022
Device: none
|
Quote:
Quote:
thank you for suggestion. @DNSB yes. to be on a safer side, I always enclose the file path with quotes. btw what does -g switch do in your script? @capink I think I'll give it a go, but in the settings dialog, which one should the path of portable calibre be in? User variables or System variables? |
||
![]() |
![]() |
![]() |
#7 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Under either though generally I prefer to use the system variable section since I have a couple of users setup (one for normal use, one for testing when I'm removing browser profiles, etc.). |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre command line syntax | RobertWHayes | Calibre | 9 | 03-21-2020 06:22 PM |
calibre command line | mahargiani | Recipes | 2 | 11-15-2019 01:21 AM |
Get Calibre version from the command line | AndyBlack | Calibre | 11 | 11-14-2019 09:08 PM |
Calibre with command line ? | Laurent06 | Conversion | 2 | 11-09-2014 12:37 AM |
Autotagging with Calibre (command line) | erion | Calibre | 11 | 08-28-2010 01:33 PM |