I have also explored the possibility of an alternate script as under:
@echo off
setlocal enabledelayedexpansion
set "SourcePath=C:\Users\sareev\Pictures\SN RC\px-conversions"
set "OutputPath=C:\Users\sareev\Pictures\SN RC\Output\Output"
set "TesseractPath=C:\Program Files\Tesseract-OCR\tesseract.exe"
for %%A in ("%SourcePath%\*.tiff") do (
echo Converting %%A...
"%TesseractPath%" "%%A" "%OutputPath%\%%~nA"
)
endlocal
And I get the below error in the console output. P.S. German is the default language of my CMD.
C:\Users\sareev\Downloads>ocr_script.bat
C:\Users\sareev\Downloads>ÁÄÇ?€?ÃÃŽËÁÈ€Á1>ŽŽËÁÈ€‚ë?ÍÊÄÁ & /ÈÇ…äš*íËÁÊË*Ë/ÊÁÁÎ* & ÑÄÈÍÊÁË*ë+€êä*øÌ Ä?1>Ë‚ŽËÁÈ€‚ | ÍÈøÍÈ & /ÈÇ…äš*íËÁÊË*Ë/ÊÁÁÎ* & ÑÄÈÍÊÁË*ë+€êä* | ÍÈøÍÈ* | ÍÈøÍÈ‚ŽËÁÈ€‚èÁËËÁÊ/ÄÈ & /ÈÇ…äš* & Ê?ÅÊ/_€ãÑÁË*èÁËËÁÊ/ÄÈ | äê*ÈÁËËÁÊ/ÄȆÁÌÁ‚ŽŽÃ?Ê€
Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.
Der Befehl "/ÈÇ…äš*íËÁÊË*Ë/ÊÁÁÎ*" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "ÑÄÈÍÊÁË*ë+€êä*øÌ Ä?" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Based on the German text in the console output, it seems that there is an issue with the command syntax or the way the commands are written in the script.
The specific error message I received states: "Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch." This translates to "The syntax for the filename, directory name, or the volume label is incorrect." This error typically occurs when there is a problem with the format or structure of the file or directory path provided in the script.
However, I have rechecked everything and there are no issues with the filenames etc.