Last active
August 24, 2016 22:23
-
-
Save bonjin6770/d88817333ddf14fb10e9759e69345dfd to your computer and use it in GitHub Desktop.
Get Directory "Program Files" Folder on Windows OS
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 | |
IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( | |
set PROGRAM_FILES="Program Files (x86)" | |
) ELSE IF "%PROCESSOR_ARCHITECTURE%" == "x86" ( | |
set PROGRAM_FILES="Program Files" | |
) | |
echo %PROGRAM_FILES:"=% | |
pause | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment