HOW DO YOU DETECT THE MAIN HARD DRIVE LETTER SUCH AS C: DRIVE USING C#?

Garry Winogrand

Total Post:24

Points:168
Posted by  Garry Winogrand
C# 
C#
 1338  View(s)
Ratings:
Rate this:

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

  1. Aaron Douglas

    Post:20

    Points:140
    Re: How do you detect the main hard drive letter such as C: drive using C#?

    Try this: -

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!