@echo OFF REM Set calibre temp files. Allows for antivirus exemption REM of the temp files increasing the speed of calibre. REM Delete temp directory on startup to remove all clutter REM from previous sessions of calibre. REM Remove existing Calibre temp directory cd c:\ rmdir /s /q c:\Calibre_temp REM Create new temp directory for this session. cd c:\ mkdir Calibre_temp REM Specify the location of the Calibre temp files REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SET CALIBRE_TEMP_DIR=C:\Calibre_temp SET TMP=C:\Calibre_temp REM CalibreRun.bat REM ~~~~~~~~~~~~~~ REM REM Batch File to start a Calibre configuration on Windows REM giving explicit control of the location of: REM - Calibre Config Files REM Specify the location of the Calibre Config files REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SET CALIBRE_CONFIG_DIRECTORY=C:\My Dropbox\CalibreConfig REM Location of calibre program files REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C: CD \Program Files\Calibre2 REM Display settings that will be used REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo CONFIG=%CALIBRE_CONFIG_DIRECTORY% REM The following gives a chance to check the settings before REM starting Calibre. It can be commented out if not wanted. echo "Press CTRL-C if you do not want to continue" pause REM Start up the calibre program. REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REM start calibre.exe --start-in-tray