在Windows OS 32位元上使用%PROGRAMFILES(x86)% [英] Using %PROGRAMFILES(x86)% on Windows OS 32bit

查看:174
本文介绍了在Windows OS 32位元上使用%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位进程中,您将获得C:\Program Files (x86).一个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".

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

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