Created
March 4, 2016 02:10
-
-
Save noonworks/8886cd74ae5cf66f7528 to your computer and use it in GitHub Desktop.
cmd.exeとOSのx86/x64
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
set OS_BIT=x64 | |
set CMD_BIT=x64 | |
if "%PROCESSOR_ARCHITECTURE%" EQU "x86" ( | |
set CMD_BIT=x86 | |
if NOT DEFINED PROCESSOR_ARCHITEW6432 set OS_BIT=x86 | |
) | |
echo %CMD_BIT% command prompt on %OS_BIT% OS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment