View Single Post
Old 02-24-2022, 11:01 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You need to escape the quotes with backslashes, like this.
Code:
set searchtag=Alternate history
for /f %%A in ('calibredb search tags:\"%searchtag%\"') do (echo %%A)
You probably also want to put an equals in front of %searchtag% to force exact matching, as in
Code:
set searchtag=Alternate history
for /f %%A in ('calibredb search tags:\"=%searchtag%\"') do (echo %%A)
chaley is offline   Reply With Quote