MS-DOS if command help - Computer Hope's free computer help
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 example below would NOT work because the del command needs to be terminated by a newline:...