In C#, how do I get the name of the drive that the Operating System is installed on?
This should do it for you:
Path.GetPathRoot(Environment.SystemDirectory)
1.4m articles
1.4m replys
5 comments
57.0k users