I have a batch file that executes three Maven commands, one after the other. Each command can be successfully executed in the script - by itself!. But when I add all three c
Having call helps. However today it didn't.
call
This is how I solved it:
Bat file contents (if you want to stop batch when one of cmds errors)
cmd1 && ^ cmd2 && ^ cmd3 && ^ cmd4
Bat file contents (if you want to continue batch when one of cmds errors)
cmd1 & ^ cmd2 & ^ cmd3 & ^ cmd4