The ELSE clause must occur on the same line as the command after the IF. For example: IF EXIST filename. ...
www.computerhope.com