@echo off rem extractbooksummary.btm sort extracted book macros, sort and format as HTML rem invoked by extractsummaries, which in turn in invoked by dailycleanup @echo ExtractBooksSummary : tidy and extract books pushd E: tidybookmacros.exe %configuration Rem create guts of books.html one line per book cd E:\mindprod\book attrib +h books.html extractbookmacros.exe %configuration -dry . rem export to C:\temp\bookmacros.csv isbn, title, author attrib -h books.html C: cd \temp csvreshape.exe bookmacros.csv 0 1 2 1 2 csvdeentify.exe bookmacros.csv 3 4 csvstriptags.exe bookmacros.csv 3 4 rem s=case-sensitive string i=case-insensitive string, d=(double,float) $=dollar n=number(int,long) rem x=hex (\u 0x ff) l=length of field f=family name csvsort.exe bookmacros.csv 4f+ 3i+ 0s+ csvreshape bookmacros.csv 0 1 2 rem build 3 cols (title, author, isbn ) from data in 3 csvtemplate bookmacros.csv E:\com\mindprod\stores\templateb.txt copy /B E:\com\mindprod\stores\donotedit.htmlfrag + bookmacros.txt E:\mindprod\include\books.htmlfrag E: cd E:\mindprod\book rem expand book macros again call E:\com\mindprod\htmlmacros\one.btm . rem so html validator will not think they have changed untouch -q . popd rem -30-