echo off 
echo 1
call ..\common\setting.bat
if not exist %test_prog% echo echo (not found %test_prog%) & set r=1 & pause & goto :eof

%test_prog% a.txt b.txt
if errorlevel 1 echo Fail. & set r=1 & goto :eof

set r=0 & echo Pass.
 
