How would I add and Else option into this to say:
You don't have the java dev kit please select option 4?
FOR /R "C:\Program Files" %%a IN (.) DO (
IF EXIST "%%~a\javac.exe" ECHO You Have The Java Dev Kit Ignore Option 4
)
How would I add and Else option into this to say:
You don't have the java dev kit please select option 4?
FOR /R "C:\Program Files" %%a IN (.) DO (
IF EXIST "%%~a\javac.exe" ECHO You Have The Java Dev Kit Ignore Option 4
)
If you want ELSE you must use
(
and)
brackets.You need to search fist all subdirectories to decide if it's there.