@echo off
rem  CTC++ System
rem  ctc2excel batch file for CTC++ to Excel CSV converter invoking
rem
rem  RCSfile     : $RCSfile: ctc2excel.bat $
rem  Version     : $Revision: 1.7 $, $Date: 2014/02/08 13:49:41 $
rem  Last Edited : 08.02.2014/op
rem  Author      : $Author: jorma $
rem
rem  Copyright (C) 2005-2013 Testwell Oy
rem  Copyright (C) 2013-2014 Verifysoft Technology GmbH
rem
rem

rem Some, but not all, sanity checks...
if "%CTCHOME%" == "" goto NoCTCHOME
if not exist %CTCHOME%\perl\perl.exe goto NoPERL

%CTCHOME%\perl\perl %CTCHOME%\ctc2excel.pl %*

goto end

:NoCTCHOME
echo.
echo Environment variable CTCHOME does not exist. Set the CTCHOME to point
echo 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
