@echo off
rem Testwell CTC++ v9.1 - part of ctcwrap toolchain
rem absagentinis2pm startup batch file for absagentinis2pm.pl Perl script
rem
rem Copyright (c) Verifysoft Technology GmbH 
rem

if "%CTCHOME%" == "" goto NoCTCHOME
if not exist %CTCHOME%\perl\perl.exe goto NoPERL

"%CTCHOME%\perl\perl" "%CTCHOME%\absagentinis2pm.pl" %CTCHOME%\ctc-*.ini

goto end

:NoCTCHOME
echo.
echo Environment variable CTCHOME does not exist. Set the CTCHOME
echo to point to the CTC++ installation directory.
echo.
goto end

:NoPERL
echo.
echo CTC++ installation directory %CTCHOME%
echo does not contain perl subdirectory or it does not contain perl.exe.
echo.
goto end

:end
