Search found 5 matches

by Razor
03 Dec 2012 08:05
Forum: DOS Batch Forum
Topic: IF:Command Syntax Incorrect; Tell me what's wrong, please.
Replies: 9
Views: 5508

Re: IF:Command Syntax Incorrect; Tell me what's wrong, pleas

And now... I come to another problem @echo off TITLE JRE Test COLOR 0A cls :32-bitjre7 IF EXIST %windir%\Java\jre7 ( goto jre7 ) ELSE ( goto 32-bitjre6 ) :32-bitjre6 COLOR 09 cls IF EXIST %programfiles%\Java\jre6 ( goto jre6 ) ELSE ( goto nojre ) :jre7 COLOR 0A cls echo Java Runtime Environment 7 is...
by Razor
03 Dec 2012 07:28
Forum: DOS Batch Forum
Topic: IF:Command Syntax Incorrect; Tell me what's wrong, please.
Replies: 9
Views: 5508

Re: IF:Command Syntax Incorrect; Tell me what's wrong, pleas

The syntax of this... is still wrong

Code: Select all

IF EXIST %windir%\Java\jre7 (
goto jre7
) ELSE (
goto 32-bitjre6


Why? o_o
by Razor
03 Dec 2012 06:36
Forum: DOS Batch Forum
Topic: IF:Command Syntax Incorrect; Tell me what's wrong, please.
Replies: 9
Views: 5508

Re: IF:Command Syntax Incorrect; Tell me what's wrong, pleas

@Ed Dyreen I don't quite follow you. :oops: Can you correct where I'm wrong?

@Foxidrive I know, I put %windrive% there because then that would say it doesn't exist.
by Razor
03 Dec 2012 03:46
Forum: DOS Batch Forum
Topic: IF:Command Syntax Incorrect; Tell me what's wrong, please.
Replies: 9
Views: 5508

IF:Command Syntax Incorrect; Tell me what's wrong, please.

Hi, Can someone tell me what's wrong with the following: @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 >...