This is a scheduled batch file that runs and completes without any problem - except that the Task Scheduler always lists 0xff as the result.
I thought that it was perhaps line eight with the 'goto eof' (where there is no actual label :eof as the last line) but it made no difference.
Again, the batch runs and completes ok, it's why the Task Scheduler shows an error that I want to clear-up.
del /q /s staxrip_temp\*
for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"
for %%f in (*.mpg) do echo %%f
for %%a in ("*.mpg") do call :go_now "%%a"
if %%a not==("*.mpg") goto eof
echo processing %~n1.mpg
staxrip.exe -template:_myxvid "%~dpn1.mpg" -encode -exit
del /q "%~dpn1.mpg"
+ Reply to Thread
Results 1 to 3 of 3
It's probably showing you the return code from the last operation (that set a return code). Put EXIT on the last line.
That was it.
Many thanks - it's been bugging me for months.