Batch file that automatically iterates each html file in a folder
Posted on 2014-12-08
I have a folder full of files, including HTML files and I need a batch file that will find and pass every html file through a CLI program.
docvert -e %out_file% %in_file% -t gts -l val
%out_file% = the output file (same name as the in_file) but with the extension ".html" replaced with ".txt"
%in_file% = the source html file in the folder
I know that I can list out all *.html files by adding this line to a batch file:
for /r %in_file% in (*.htm) do echo %in_file%
Finally, I want to log each iteration in the do loop and how long it required.
Probably, something like this should be good enough...
echo Translation start %date% %time% >> log.txt