Skip to content

Instantly share code, notes, and snippets.

@noonworks
Created March 4, 2016 02:10
Show Gist options
  • Save noonworks/8886cd74ae5cf66f7528 to your computer and use it in GitHub Desktop.
Save noonworks/8886cd74ae5cf66f7528 to your computer and use it in GitHub Desktop.
cmd.exeとOSのx86/x64
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