可以做更多 将 64 位应用程序放入“Program Files (x64)”并让 32 位应用程序在“Program Files”中运行是否有意义?
我有一个批处理文件需要运行 Flex编译器。在 x64 中,该程序位于“Program Files (x86)”中。在 Windows Vista 32 位上,它在“程序文件”中 - 环境变量?核实:
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
我该怎么办?
set mxmlc="%ProgramFiles(x86)%\Adobe\Flex Builder 3\sdks\3.1.0\bin\mxmlc.exe"
if NOT EXIST %mxmlc% set mxmlc="%ProgramFiles%\Adobe\Flex Builder 3\sdks\3.1.0\bin\mxmlc.exe"
tnx
最佳答案
使其便携:
SET ExecPath=%ProgramFiles(x86)%
IF "%ExecPath%"=="" SET ExecPath=%ProgramFiles%
关于vista64 - 为什么 Microsoft 决定将 32 位应用程序放在 "Program Files (x86)"中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/293364/