Skip to content

Instantly share code, notes, and snippets.

@servercharlie
Created April 2, 2017 14:01
Show Gist options
  • Save servercharlie/7f0b7a72a81083023212349f9941e5cb to your computer and use it in GitHub Desktop.
Save servercharlie/7f0b7a72a81083023212349f9941e5cb to your computer and use it in GitHub Desktop.
32or64bit.bat - curl test
@echo OFF
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
If %OS% == 32BIT (
Echo "This is a 32bit operating system"
)
If %OS% == 64BIT (
Echo "This is a 32bit operating system"
)
pause
REM http://stackoverflow.com/a/24590583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment