Created
April 2, 2017 14:01
-
-
Save servercharlie/7f0b7a72a81083023212349f9941e5cb to your computer and use it in GitHub Desktop.
32or64bit.bat - curl test
This file contains hidden or 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 | |
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