PDA

View Full Version : Batch syntax (equiv of unix ";" ) (W2K)



humbletech99
05-31-2006, 05:03 AM
Hi,
what is the windows batch equivalent of the semi-colon in unix?

I know that && and || can be used but these don't give the desired effect, I want all commands to run regardless of the last return code.

In fact I really need to run many commands on the same line, so ; or something is the only solution I can think of.

motoflop
06-02-2006, 10:54 AM
I thing single & is unconditional. At least:

c:\>foobar & foobar & foobar
'foobar' is not recognized as an internal or external command
operable program or batch file.
'foobar' is not recognized as an internal or external command
operable program or batch file.
'foobar' is not recognized as an internal or external command
operable program or batch file.

But:

c:\>foobar && foobar && foobar
'foobar' is not recognized as an internal or external command,
operable program or batch file.