View Single Post
Old 02-03-2013, 12:50 PM   #9
Willum
Junior Member
Willum began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2013
Device: none
Hi Kovidgoyal,

I couldn't get it work, what I now did.. I have made all the tags 'spaceless'.

Example of catalog.bat:
Code:
@ECHO OFF
Call CreateCatalog "Detectives" 
Call CreateCatalog "DetectivesEnThrillers"
Call CreateCatalog "Dictionaries"
Call CreateCatalog "KorteVerhalenEnGedichten"
Example of CreateCatalog.bat
Code:
SET TAGNAME=%~1
SET TAGS=tags:"=%TAGNAME%"

"C:\Program Files (x86)\Calibre2\calibredb" catalog "G:\My Documents\Calibre Bibliotheek\%TAGNAME%.epub" -s %TAGS%
"C:\Program Files (x86)\Calibre2\calibredb" add --tags Catalog --title %TAGNAME% --authors "Calibre" "G:\My Documents\Calibre Bibliotheek\%TAGNAME%.epub"
DEL "G:\My Documents\Calibre Bibliotheek\%TAGNAME%.epub"
This will run in Winows as a batch file.

Thanks anyway for the help.

Regards,
Willum
Willum is offline   Reply With Quote