I am writing a program to kill and restart explorer but I don\'t want to hard code the location because some people install windows in different places (for example I found some
Environment.GetFolderPath( Environment.SpecialFolder.Windows ) will return the path to the Windows folder. Recommend this approach over the environment variable, because using an API that does exactly what we want (.NET 4.0 and above).