Created
October 24, 2018 17:14
-
-
Save bohack/be9912af14b64fcf0a256df956400a50 to your computer and use it in GitHub Desktop.
Example of trapping missing EXEs
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 | |
REM Bohack | |
REM 10/8/18 | |
REM Example of trapping missing EXEs | |
ECHO %ERRORLEVEL% | |
ECHO. | |
pslists | |
IF %ERRORLEVEL% EQU 9009 (COLOR 47 && ECHO. && ECHO ERROR! - Please install PStools from Microsoft. && ECHO.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment