在 32 位 Windows 操作系统上使用 %PROGRAMFILES(x86)% [英] Using %PROGRAMFILES(x86)% on Windows OS 32bit

查看:38
本文介绍了在 32 位 Windows 操作系统上使用 %PROGRAMFILES(x86)%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 32 位 Windows 操作系统(即 Windows XP、Vista 等旧版本的 Windows)上使用环境变量 %PROGRAMFILES(x86)% 时会发生什么?

What happens when I use the environment variable %PROGRAMFILES(x86)% on a Windows OS that is 32bit (ie, older versions of Windows such as Windows XP, Vista)?

我希望它会简单地解析为:C:/Program Files.这会发生吗?

I am hoping that it will simply resolve to: C:/Program Files. Will this occur?

推荐答案

根据到这个 环境变量 %PROGRAMFILES(x86)% 仅在 64 位系统上可用.

According to this the environment variable %PROGRAMFILES(x86)% is only available on 64-bit systems.

但是,如果您在 64 位系统上并使用 %PROGRAMFILES%,您获得的结果取决于请求环境变量的进程是 32 位还是 64 位.

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.

所以从 64 位系统上的 64 位进程你会得到 C:Program Files,从 64 位系统上的 32 位进程你会得到 C:Program Files (x86),并从 32 位系统上的 32 位进程获得 C:Program Files.

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".

这篇关于在 32 位 Windows 操作系统上使用 %PROGRAMFILES(x86)%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆