VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    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"
    Quote Quote  
  2. It's probably showing you the return code from the last operation (that set a return code). Put EXIT on the last line.
    Quote Quote  
  3. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    That was it.
    Many thanks - it's been bugging me for months.
    Quote Quote  



Similar Threads