Can someone tell me what's wrong with the following:
Code: Select all
@echo off
TITLE JRE Test
COLOR 0A
cls
:32-bitjre7
IF EXIST %windir%\Java\jre7
goto jre7
) ELSE (
echo You are using another version of JRE or it's not installed.
ping localhost -n 2 >nul
echo.
echo Moving on to JRE6 Test.
ping localhost -n 2 >nul
COLOR 09
cls
:32-bitjre6
IF EXIST %windir%\Java\jre6
goto jre6
) ELSE (
echo JRE is not installed.
goto nojre
:jre7
COLOR 0A
cls
echo Java Runtime Environment 7 is installed.
echo Press any key to exit.
pause >nul
exit
:jre6
COLOR 09
cls
echo Java Runtime Environment 6 is installed.
echo Press any key to exit.
pause >nul
exit
:nojre
COLOR 0C
cls
echo Java Runtime Environment is not installed.
echo Press any key to exit.
pause >nul
exit
Thanks
