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