In the answers at https://stackoverflow.com/questions/8055371/how-do-i-run-two-commands-in-one-line-in-windows-cmd, &
"runs" one command, then the next, while &&
runs the 2nd command only if the first completes without error.
My problem is that it is not clear to me whether using &
will wait for the first command to complete before running the second one. On the other hand &&
clearly will do so, but I want the 2nd command to run, synchronously, after the first one completes, regardless whether the first one succeeds.
Saying cmd "runs" the first one, then the second, to me only implies that each one is submitted in order; it says nothing about whether the second one is submitted only after the first one finishes.
Which is the actual behavior of &
?
Thanks.
--peter