command line - Windows batch file if else usage - Super User
From the if documentation on the command line. 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 ......