我需要在 C# 项目中确定原始 explorer.exe 在 32 位和 64 位 Windows 上的路径。实现该目标的最可靠方法是什么?
最佳答案
我会使用环境变量“windir”,因为 explorer.exe 位于其中
string windir = Environment.GetEnvironmentVariable("windir");
string explorerPath = windir + @"\explorer.exe";
关于c# - 如何确定 .NET 中 explorer.exe 的路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3734521/