如何获取程序文件x86 env变量? [英] how to get program files x86 env variable?

查看:180
本文介绍了如何获取程序文件x86 env变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在命令提示符下显示程序文件(x86)的位置。我正在使用Windows 7 64位。

I would like to know how I can display the location of Program Files (x86) in command prompt. I'm using Windows 7 64bit.

我尝试过:

echo%programfiles(x86)% echo%programfiles%

,其中只显示 C:\Program Files

echo %programfiles(x86)% and echo %programfiles%,
both of which displays only C:\Program Files

当我手动检查注册表时,

HKLM / Software / microsoft / windows / currentversion

$ code> programfilesdir
指向 C:\Program Files

When I manually checked the registry,
HKLM/Software/microsoft/windows/currentversion,
the programfilesdir points to C:\Program Files and

HKLM / Software / WOW64 / Microsoft / winodws / currentversion

programfilesdir 指向 C:\程序文件(x86)

但是,为什么我总是显示C:\程序文件?

But, why am I always being displayed with C:\Program Files??

推荐答案

在64位模式运行的64位机器上:

On a 64-bit machine running in 64-bit mode:


  • echo%programfiles% ==> C:\Program Files

  • echo%programfiles(x86)% ==> C: \\ Program Files(x86)

  • echo %programfiles% ==> C:\Program Files
  • echo %programfiles(x86)% ==> C:\Program Files (x86)

在32位(WOW64)模式运行的64位机器上:

On a 64-bit machine running in 32-bit (WOW64) mode:


  • echo%programfiles % ==> C:\程序文件(x86)

  • echo%programfiles(x86)% ==> C:\Program Files(x86)

  • echo %programfiles% ==> C:\Program Files (x86)
  • echo %programfiles(x86)% ==> C:\Program Files (x86)

这篇关于如何获取程序文件x86 env变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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