View Single Post
Old 01-25-2011, 12:32 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
I start up calibre from a batch file and never have to worry about old temp files or folders.

Spoiler:

Code:
@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
DoctorOhh is offline   Reply With Quote