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

Total Post:24

Points:168

C# 
C#
 1722  View(s)
Ratings:
Rate this:

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

  1. 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));

      Modified On Apr-03-2018 05:03:04 AM

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.