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
I would highly recommend the use of:
Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.System))
It does NOT require administrator rights and supports all versions of the .NET framework.