[英]Environment.SpecialFolder.ProgramFiles value for a 32-bit application on Windows 7?
What would a 32-bit application running on Windows 7 return for the below? 在Windows 7上运行的32位应用程序将返回以下内容?
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
C:\\Program Files (x86)
or C:\\Program Files
? C:\\Program Files (x86)
或C:\\Program Files
?
在32位Windows 7上,您应该在64位“C:\\ Program Files(x86)”上获得“C:\\ Program Files”。
It doesn't matter what it returns. 它返回的并不重要。 Either value will map to the same folder, file system virtualization will always map it to (x86) for a 32-bit app.
这两个值都将映射到同一文件夹,文件系统虚拟化将始终将其映射到(x86)32位应用程序。
Well I'm running Windows 7 Ultimate 32 bit so I wanted to know for sure what was returned, so I put this into a console application to see what was returned 好吧,我正在运行Windows 7 Ultimate 32位,所以我想知道返回的是什么,所以我把它放到一个控制台应用程序中,看看返回了什么
Console.WriteLine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles));
And it returned C:\\Program Files 它返回了C:\\ Program Files
C:\\ Program Files(x86)
“C:\\ Program Files(x86)”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.