gpt4 book ai didi

.net - 需要获取程序文件夹,在 64 位机器上运行 32 位应用程序?

转载 作者:可可西里 更新时间:2023-11-01 10:24:27 25 4
gpt4 key购买 nike

我试过了

Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) 'Program Files (x86)
Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles) '<Program Files (x86)
Environment.GetFolderPath(Environment.SpecialFolder.Programs) '<blank>

但我需要获取“程序文件”

因为我需要使用windows默认程序tabtip.exe

最佳答案

在这种情况下,读取 ProgramW6432 环境变量

Environment.GetEnvironmetnVariable("ProgramW6432");

关于.net - 需要获取程序文件夹,在 64 位机器上运行 32 位应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21682254/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com