Help me to Understand what is said below this is an extract of Catalina.bat for
Tomcat 5.5.23
<--------------------------------------------------->
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%CURRENT_DIR%
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
cd ..
set CATALINA_HOME=%cd%
cd %CURRENT_DIR%
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
kHome
rem Get standard environment variables
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
<------------------------------------------------------------------------>
1 What is the Language used to write this batch file?
2 if not "%CATALINA_HOME%" == "" goto gotHome
//What is meant here? ,What is gotHome
// As I can I understand what it says is If CATALINA_HOME is not equal to "" then go to gotHome, Now at this point if CATALINA_HOME is assigned to a value why is it assigned a another value using the statement
set CATALINA_HOME=%CURRENT_DIR% and what is indicated by % sign
3 if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
1 What is meant here?
2 As I get it If the if conditin is true then go to oKHome
//Please explain the syntax if you can and what is oKHome, what is meant by go to
3 In the next line cd.. what is that