|RainBawZ, you might want to check the command's help before you call out a particular syntax as invalid:|
Performs conditional processing in batch programs.
IF [NOT] ERRORLEVEL number command
IF [NOT] string1==string2 command
IF [NOT] EXIST filename command
NOT Specifies that Windows should carry out
the command only if the condition is false.
ERRORLEVEL number Specifies a true condition if the last program run
returned an exit code equal to or greater than the number
string1==string2 Specifies a true condition if the specified text strings
EXIST filename Specifies a true condition if the specified filename
command Specifies the command to carry out if the condition is
met. Command can be followed by ELSE command which
will execute the command after the ELSE keyword if the
specified condition is FALSE
How To Ask Questions The Smart Way