Executing multiple commands from a Windows cmd script

Posted by Darren Greaves on Stack Overflow See other posts from Stack Overflow or by Darren Greaves
Published on 2008-10-13T15:23:54Z Indexed on 2010/04/11 8:33 UTC
Read the original article Hit count: 327

Filed under:
|
|
|

I'm trying to write a Windows cmd script to perform several tasks in series. However, it always stops after the first command in the script.

The command it stops after is a maven build (not sure if that's relevant).

How do I make it carry on and run each task in turn please?

Installing any software or configuring the registry etc is completely out of the question - it has to work on a vanilla Windows XP installation I'm afraid.

Ideally I'd like the script to abort if any of the commands failed, but that's a "nice to have", not essential.

Thanks.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about batch