Author Topic: How to get read size and write size of a MSD?  (Read 11282 times)

mr_asadi

  • Member
  • ***
  • Posts: 11
How to get read size and write size of a MSD?
« on: February 10, 2013, 02:49:24 am »
hi
how can I get read size and write size of a USB Flash memory that connected to the PC ?
is any way from createfile() and deviceIOcontrol() function? there is  any one that help me with a clear example in C#?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to get read size and write size of a MSD?
« Reply #1 on: February 10, 2013, 01:19:48 pm »
See the DriveInfo class, TotalSize property:

http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx