How to determine exlorer.exe path in .NET?

I need to determine the path of the original explorer.exe on 32-bit and 64-bit Windows in a C # project. What is the most reliable way to achieve this?

+3
source share
1 answer

I would use the "windir" environment variable since explorer.exe is there

string windir = Environment.GetEnvironmentVariable("windir");
string explorerPath = windir + @"\explorer.exe";
+4
source

Source: https://habr.com/ru/post/1765265/


All Articles