Tuesday, 19 August 2014

How to get the Local drive (Disc) name where Operating System is installed in c#?

// Get the drive name where Operating System is installed
           
MessageBox.Show(Path.GetPathRoot(Environment.SystemDirectory));

No comments:

Post a Comment