How to execute a third party utility on every file in a folder recursively?

Solution 1:

Use a .bat file with the FOR /R command to loop through files and recurse on subfolders.

Something like:

@echo off
Setlocal enabledelayedexpansion

For /R C:\path\to\folder %%a in (*.jpg) Do (
Set filename=%%~na
tesseract "%%a" !filename!.txt -l Cyrillic
)

Warning: I have not tested this script. It needs some tweaking if you have .jpg files in subfolders of the specified folder.