filesystems - How to find the disk that holds a given partition in C#? -


does know way find out programatically physical disk holds given partition? manually, can find info using start->run->diskmgmt.msc , can see (on computer) partitions c: , d: on disk 1, e: & f: on disk 0.

this optimizing file crunching operations doing them in parallel if files on different physical disks.

you can obtain information using wmi system.management namespace quering win32_diskdrive class.

here's basic info wmi in .net.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -