I want to segregate the result, PASSED/FAILED to different folder (PASSED/FAILED folder).
Example:
REM 1 = line number
REM 2 = path
pushd %2
for /f "delims=" %%x in ('dir /d /od /b "%~1*.log"') do set "recent=%%x"
echo %recent%
find "PASSED" "%recent%"
set rtn=%errorlevel%
IF rtn=0 (
move %2result_%1.log %2PASSED
) ELSE (
move %2result_%1.log %2FAILED
)
popd
exit /b %rtn%
This flow is not working yet.
I need your advice.
Thanks
You should change the line
IF rtn=0 (toIF %rtn%==0 (, that’s all