Created
May 24, 2018 15:57
-
-
Save maphew/62d5a2d6a08914b25f5005d95f6b3bdc to your computer and use it in GitHub Desktop.
Test what version of Command Extensions are available (Windows)
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 | |
:: Test what version of Command Extensions are available | |
:: http://ss64.org/viewtopic.php?id=1834 | |
if "~x0"=="%~x0" goto NOCMDEXT | |
if "%%~x0"=="%~x0" goto NOCMDEXT | |
if CmdExtVersion 2 goto CMDEXTV2 | |
goto CMDEXTV1 | |
:CMDEXTV1 | |
echo Command extensions v1 available | |
goto :EOF | |
:CMDEXTV2 | |
echo Command extensions v2 or later available | |
exit /b 0 | |
:NOCMDEXT | |
echo Command extensions not available | |
:: END OF FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment