@echo off set YL=kino if "%1" == "" goto info set SIS=%YL%.sis set VAL=%YL%.val set VAS=%YL%.xxx set SISX=%YL%test.%2.sis set VALX=%YL%test.%2.val if not exist %1 goto pole set PRG= if "%~x1" == ".exe" set PRG=%1 if "%~x1" == ".class" set PRG=java.exe -cp . %~n1 if "%~x1" == ".php" set PRG=php.exe %1 if "%~x1" == ".pl" set PRG=perl.exe %1 if "%~x1" == ".py" set PRG=python.exe %1 if "%~x1" == ".tcl" set PRG=tclsh.exe %1 if "%PRG%" == "" goto oska :oleb if "%2" == "" goto koik :test cls echo ======= echo Test %2 echo ======= if exist %SIS% del %SIS% if exist %VAL% del %VAL% if exist %VAS% del %VAS% copy %SISX% %SIS% > nul ..\tester.exe -t 1000 -m 64 "%PRG%" pause if exist %SIS% del %SIS% if exist %VAL% del %VAL% if exist %VAS% del %VAS% goto lopp :koik for %%i in (01 02 03 04 05 06 07 08 09 10 x1) do call %0 %1 %%i goto lopp :pole echo Ei leia testitavat programmi %1 goto lopp :oska echo Ei oska k„ivitada testitavat programmi %1 goto lopp :info echo Sntaks on: %0 programm [test] echo vaikimisi tehakse käik testid goto lopp :lopp