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