Home > DeveloperSection > Forums > How do you detect the main hard drive letter such as C: drive using C#?
Garry Winogrand
Garry Winogrand

Total Post:24

Points:168
Posted on    October-16-2013 6:55 AM

 C# C# 
Ratings:


 1 Reply(s)
 1004  View(s)
Rate this:

How do you detect the main hard drive letter such as C: drive?



Aaron Douglas
Aaron Douglas

Total Post:20

Points:140
Posted on    October-16-2013 7:36 AM

Try this: -

Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System));

Don't want to miss updates? Please click the below button!

Follow MindStick