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.
@echo off
del /q /s staxrip_temp\*
cd staxrip_temp
for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"
cd..
for %%f in (*.mpg) do echo %%f
for %%a in ("*.mpg") do call :go_now "%%a"
if %%a not==("*.mpg") goto eof
:go_now
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.
Similar Threads
-
Broken WMV file shows height of 0 -- how to fix?
By Calidore in forum Video ConversionReplies: 1Last Post: 10th Jun 2012, 11:16 -
Converting tv shows
By Oem in forum Video ConversionReplies: 2Last Post: 1st Feb 2010, 01:45 -
Corrupted MOV file shows up as MPG
By jblc in forum Video ConversionReplies: 0Last Post: 10th Jan 2010, 14:15 -
Need help to back up a DVD that shows 60GB+ file size
By Wellcum in forum DVD RippingReplies: 15Last Post: 13th Aug 2009, 13:52 -
KMPlayer, and use VirtualDub to edit AVI file, warning shows up
By rozaback in forum Newbie / General discussionsReplies: 5Last Post: 28th Apr 2008, 20:35