@echo off pushd %~dp0 if not "%RK2_HOME%" == "" goto already set RK2_HOME=%CD% set ANT_HOME=%RK2_HOME%\core\ant set PATH=%RK2_HOME%\bin;%ANT_HOME%\bin;%PATH% echo Done goto end :already echo rk2 environment already set up :end popd