In C#, how do I get the name of the drive that the Operating System is installed on?
There is an enum "SpecialFolder" in Environment where we can select the folder we are looking for..
Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
All other Environment properties can be found at ms itself : http://msdn.microsoft.com/en-us/library/system.environment_properties.aspx
SystemDirectory - Gets the fully qualified path of the system directory.
This should do it for you:
Path.GetPathRoot(Environment.SystemDirectory)