This question is based off @ZaLiTHkA's reply of the accepted answer of the running cmd commands sequentially question seen below.
Just for the sake of clarity: you should note the single
&
symbol here is explicitly for a live command prompt. When commands are run by passing a string to be executed as a script (shortcuts, batch files, etc.. ), then double&&
are required – ZaLiTHkA Apr 3 '14 at 20:28
Is &&
really necessary for running script commands (i.e. shortcuts or batch files)? I've found I am still able to run a simple command like: cmd /k echo foo & echo bar
in the run window and execute a shortcut of the same target/command, without a problem. Would appreciate any clarification or documentation explicitly saying why and if &&
is actually the recommended method for batch scripts since it seems a single &
seems to work as well.
Note: This is a not a question distinguishing the difference between &&
and &
definitions, but why && is required as pointed out by @ZaLiTHkA's very visibly upvoted comment.