Find the "programm files" folder for both platform: 32/64bit
Posted: 26 Aug 2010 03:50
Hello,
1. Is this script a good/safe way to find the folder where softwares are installed,
independently of the platform 32bit or 64bit ?
2. On a MS Windows 64bit platform, where 64bit softwares are installed: in "Program files" or "Program files (x86)" folder ?
Thanks
1. Is this script a good/safe way to find the folder where softwares are installed,
independently of the platform 32bit or 64bit ?
Code: Select all
SET PF=%PROGRAMFILES%
IF /i NOT "%PROCESSOR_ARCHITECTURE%"=="x86" SET PF=%PF% ^(x86^)
ECHO %PF%
Pause
2. On a MS Windows 64bit platform, where 64bit softwares are installed: in "Program files" or "Program files (x86)" folder ?
Thanks