Okay, so just read up on environment variables since I had no idea what they were. How do I create a DOS/Windows batch file that automatically changes the config path relative to the location of Calibre?
Say I have the following directory structure:
Quote:
PortableCalibre
|- Calibre (copy of install directory)
|- config (location of settings)
|- calibre-db (location of database and books)
|- portablecalibre.bat
|
Will the following batch file work (
portablecalibre.bat):
Code:
@echo off
cd config
setlocal
set CALIBRE_CONFIG_DIRECTORY = %cd%
cd..
cd calibre
calibre.exe --with-library ..\calibre-db
endlocal
Another question, if Calibre is already installed on the PC, am I correct in assuming the above batch file would only change settings for "portable calibre" and the version installed on the computer would be unaffected by the path change?
Thanks!