Is it possible to have 2 or more commands in the "do something" portion of the if statement? The if statement goes
if (condition) command
Is it possible to have it like
if (condition) (execute command1 follow by command2)
if not exist "input.txt" (echo "File don't exists" goto :EOF)
Because I want to inform the user first and then exit the batch.
If I put the code as
if not exist "input.txt" (echo "File don't exists")
The goto :EOF gets executed even the input file exists.
Please advise.Thank you