View Single Post
Old 02-24-2022, 07:46 AM   #6
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,220
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Bertrand View Post
Now the problem is, how do I pass this (big!) list of ids to the export command, in a batch file...
On Windows, the batch file would look like this:

Code:
FOR /F "tokens=*" %%g IN ('calibredb search tags:"my tag"') do (SET IDS=%%g)
calibredb export %IDS% --to-dir "I:\test"
thiago.eec is offline   Reply With Quote