Re: Can I batch process multiple text files?
Date: October 24, 2019 01:13PM
Here is the basic version of a BAT file that will process multiple .text files with TKS in a folder. For simplicity there is no directory checking, so SMPF and the .text files need to be in the same folder.
for %%f in (*.text) do (
java -jar spmf.jar run TKS "%%~nf.text" "%%~nfOutput.txt" 50 1 4 "" 1 0
Hope it's useful to someone, it has saved my day.
By the way, here is a way to rename all your .txt files in a folder to .text with a BAT file too, this script could be added to the beginning of the above script.
ren *.txt *.text