3 REM Test by comparing stdout and stderr (FCBat style)
\r
5 if "%1"=="" cmd /K "%0" /wnd
\r
7 if exist T_ALL_result.txt del T_ALL_result.txt
\r
11 ( cscript //nologo %T%.vbs 2>&1 ) > %T%_log.txt
\r
12 fc %T%_ans.txt %T%_log.txt
\r
13 if errorlevel 1 echo Fail in %T%.vbs>> T_ALL_result.txt&goto :last_of_test
\r
17 echo Test log compare ...>> T_ALL_result.txt
\r
18 if not errorlevel 1 echo Pass.>> T_ALL_result.txt
\r
19 if errorlevel 1 echo Fail.>> T_ALL_result.txt
\r
20 type T_ALL_result.txt
\r