VB.Net find Hard Disk Number (Like in Disk Manager)
Posted on 2009-07-08
I need a way to determine the Disk Number of a drive based on it's letter.
For example, if you open 'Computer Management', then got to 'Disk Management', then look at the listing of drives (on the bottom), they are 'Disk 0', 'Disk 1', and so on. (or right-click the 'Disk 0', go to properties, then click the 'Volumes' tab - look at 'Disk:' - that's the number I need - same as the other area)
I need to be able to determine the disk number by drive letter, for hard disks and memory cards.
(This number will be passed to Ghost to backup the disk)