Created
July 3, 2017 23:50
-
-
Save the-nose-knows/1bebce2719e020188c6307cff736f951 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 | |
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS | |
Set param1=5000 | |
Set param2=300 | |
FOR /F "tokens=*" %%Y IN (C:\temp\test_map.log) DO ( | |
echo [33m Performing dry-run and file-inspection of [93m%%~nxY | |
call C:\Windows\System32\notepad.exe %%Y %param1% %param2% | |
Set checker_exit=!errorlevel! | |
IF "!checker_exit!"=="0" ( | |
echo [93m%%~nxY[33m exited zero, adding to test map | |
echo %%Y>>C:\temp\verified_test_map.log | |
) | |
IF "!checker_exit!"=="1" ( | |
echo [93m%%~nxY[33m exited non-zero and non-halting, adding to test map | |
echo %%Y>>C:\temp\verified_test_map.log | |
) | |
IF "!checker_exit!"=="-1" echo [91m%%~nxY[31m had to be force-closed, skipping for this session | |
IF "!checker_exit!"=="-2" echo [31mBad parameters were sent to checker | |
IF "!checker_exit!"=="-3" echo [91m%%~nxY[31m Failed to even launch, possibly missing or unavailable to use | |
IF "!checker_exit!"=="-4" echo [31mchecker encountered an unknown internal error when trying it against %%~nxY | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment