Batch files - The IF command: Windows NT 4/Windows 2000 Syntax
The ELSE clause must occur on the same line as the command after the IF. For example: IF EXIST filename ( del filename) ELSE ( echo filename missing. ) The following would NOT work because the del command needs to be terminated by a newline: IF EXIST file...