Created
May 20, 2014 02:59
-
-
Save kasajian/6479e25d32310db9353b to your computer and use it in GitHub Desktop.
Determine if an exe or bat can be invoked
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
rem To determine if 7za.exe is in the path: | |
for %%X in (7za.exe) do (set FOUND=%%~$PATH:X) | |
rem To determine if 7z.exe is at the specified location: | |
if exist "%programfiles(x86)%\7-zip\7z.exe" set FOUND=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment