I have a BAT procedure CONVTS that executes the following code:
...
) Else (
::Process single file --------
echo.Single file processing
setlocal EnableDelayedExpansion
set "input=%lib1%%1%ext1%"
set "output=%lib1%%1.mp4"
echo.Process single file - "!input!" - "!output!"
call :Convert "!input!" "!output!"
)
It runs fine so far ... this is the (expected) output:
"C:\Userlink\ffmpeg\bin\convts.bat" test has started ...
Single file processing
Process single file - "P:\Convert\test.ts" - "P:\Convert\test.mp4"
But if I remove echo.Single file processing
, I get the following error:
"C:\Userlink\ffmpeg\bin\convts.bat" test has started ...
The syntax of the command is incorrect.
I have no idea what could be wrong about removing the echo command !
This behaviour seems very strange to me ... most probably I lack some important info about the syntax of BAT procedures.
I hope somebody can help me out ...