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:
- how to get program files x86 env variable?
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- Difference between masm32 and masm?
- How do I start PowerShell from Windows Explorer?
- What does “@” mean in Windows batch scripts
- How to run a PowerShell script
- ‘git’ is not recognized as an internal or external command
- How do I install and use cURL on Windows?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- ow can I find where Python is installed on Windows?
- ‘git’ is not recognized as an internal or external command
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- anaconda – path environment variable in windows
- Create an empty file on the commandline in windows (like the linux touch command)
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- what is a “dump file” in windows task manager?
- How do I run Redis on Windows?
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- Python virtualenv questions
- Using putty to scp from windows to Linux
- how to open an mp3 file with c
- How to run a makefile in Windows?
- Command Prompt “Net View System Error 6118”
- How to run ‘sudo’ command in windows
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- Verify return code: 20 when testing OpenSSL
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- What is the default password for Postgres
- “X does not name a type” error in C++
- How To Activate Windows 10
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- What is the difference between Cygwin and MinGW?
- 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
- Using GNU Scientific Library (GSL) under Windows x64 with MinGW
- Visual C++ executable and missing MSVCR100d.dll
- Can’t start hostednetwork
- What is the ASCII Code of ½?
- 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
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- 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”
- What is Windows Fabric and how to host services in it?
- Python not working in the command line of git bash
- How to open an elevated cmd using command line for Windows?
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- Setting up a cron job in Windows
- ‘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’
- While loop in batch
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- 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
- Bridged networking not working in Virtualbox under Windows 10
- Is there a Pattern Matching Utility like GREP in Windows?
- Redirecting Output from within Batch file
- How do you clear the console screen in C?
- What is %0|%0 and how does it work?
- How do I get the current username in Windows PowerShell?
- Can’t start hostednetwork
- False ‘Sharing Violation’ Xcopy error message
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- How does the echo command works in batch programming
- Visual Studio compiles but the exe isn’t there
- How to split large text file in windows?
- mysql community server vs mysql installer
- Docker hv-sock proxy (vsudd) is not reachable windows
- How do I use spaces in the Command Prompt?
- What is a Windows Handle?
- how to open Jupyter notebook in chrome on windows
- Need auto-restart script in batch for minecraft server
- How do I force Robocopy to overwrite files?
- Using sys/socket.h functions on windows
- 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
- The requested operation cannot be performed on a file with a user-mapped section open
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Unable to start MySQL server
- Git Bash doesn’t see my PATH
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- Best practice for exiting batch file?