According to this the environment variable %PROGRAMFILES(x86)%
is only available on 64-bit systems.
However, if you are on a 64-bit system and use %PROGRAMFILES%
, the result you get depend on whether the process requesting the environment variable is 32-bit or 64-bit.
So from a 64-bit process on a 64-bit system you would get C:\Program Files
, from a 32-bit process on a 64-bit system you would get C:\Program Files (x86)
, and from a 32-bit process on a 32-bit system you would get C:\Program Files
.
If this doesn’t help, perhaps you can comment or edit your original question to make it specific what you are trying to do. As it currently stands, the answer to your question is “No”.
Related Posts:
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- Why is “MINGW64” appearing on my Git bash?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- What are good grep tools for Windows? [closed]
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- ‘git’ is not recognized as an internal or external command
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- ow can I find where Python is installed on Windows?
- ‘git’ is not recognized as an internal or external command
- Setting Windows PowerShell environment variables
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- How to run a PowerShell script
- How can I open a cmd window in a specific location?
- anaconda – path environment variable in windows
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- what is a “dump file” in windows task manager?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How do I run Redis on Windows?
- Need to navigate to a folder in command prompt
- Using putty to scp from windows to Linux
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- how to open an mp3 file with c
- What languages are Windows, Mac OS X and Linux written in?
- Command Prompt “Net View System Error 6118”
- git clone: Authentication failed for
- How to compile LEX/YACC files on Windows?
- Batch script loop
- Command ‘ls’ not working in command prompt
- openssh windows bad owner or permissions
- What is the default password for Postgres
- “X does not name a type” error in C++
- Windows Activator .bat Text
- how to edit or see the source code for dll files
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- Text editor to open big (giant, huge, large) text files
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- Visual C++ executable and missing MSVCR100d.dll
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- What is the ASCII Code of ½?
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- Why Local Users and Groups is missing in Computer Management on Windows 10 Home?
- How to force `findstr` to ignore `Cannot open` returns
- Npm Please try using this command again as root/administrator
- Choosing a Windows automation scripting language. AutoIt vs Autohotkey
- “ImportError: No module named site” on Windows
- “python” not recognized as a command
- sudo command not found on Cygwin
- What is Windows Fabric and how to host services in it?
- starting R: Error: ‘\U’ used without hex digits in character string starting “”C:\U”
- npm ERR! No git binary found in $PATH
- How to run PowerShell in CMD
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- SVN admin management GUI tool
- ‘openssl’ is not recognized as internal or external command
- docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’
- cat not recognised as an internal or external command
- How to grant permission to users for a directory using command line in Windows?
- Curl not recognized as an internal or external command, operable program or batch file
- Making a countdown timer in C++
- Is there a Pattern Matching Utility like GREP in Windows?
- Redirecting Output from within Batch file
- How to send a simple email from a Windows batch file?
- How can I run a program from a batch file without leaving the console open after the program starts?
- What exactly is the scope of Access Violation ‘0xc0000005’?
- How do you clear the console screen in C?
- How can I do GUI programming in C?
- What is %0|%0 and how does it work?
- What does /p mean in set /p?
- Why do fonts appear jagged in Chrome?
- batch file from scheduled task returns code 2147942401
- How does the echo command works in batch programming
- Visual Studio compiles but the exe isn’t there
- CALL command vs. START with /WAIT option
- BAT file to map to network drive without running as admin
- Aliases in Windows command prompt
- Docker hv-sock proxy (vsudd) is not reachable windows
- How do I use spaces in the Command Prompt?
- how to open Jupyter notebook in chrome on windows
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Difference between $? and $LastExitCode in PowerShell
- How to use/install GNU binutils (objdump)
- How to use random in BATCH script?
- How do I force Robocopy to overwrite files?
- In which cases does program exit with 0x40010004 code?
- Sublime Text from Command Line
- Windows batch – concatenate multiple text files into one
- Where do you usually have your DirectX SDK folder?
- What is the difference between \ and \\ in file path
- “NODE_ENV” is not recognized as an internal or external command, operable command or batch file
- HyperV is not available on Home editions
- Batch command for ImageMagick to convert all files in a directory and sub-directories on windows
- What’s a good (free) visual merge tool for Git? (on windows)
- how to empty recyclebin through command prompt?
- php exec() is not executing the command
- You require permission from “Myself” to delete folder – how to fix