I'm writing a batch file on windows 7 that executing some commands one after another:
copy source1 dest1
call someFile1.bat
copy source2 dest2
call someFile2.bat
copy source3 dest3
Is there a way to return error code 1 if any of the commands returns error code 1?
Thanks!