Created
September 14, 2017 00:05
-
-
Save jamezp/82121b290790e0f3fa314972069196b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /l %%x in (1, 1, 10) do ( | |
setlocal enabledelayedexpansion | |
echo Executing run %%x for command %* | |
call %* | |
if not !errorlevel! == 0 ( | |
echo Command %* failed at run %%x with status !errorlevel! | |
exit /b !errorlevel! | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment