Wonderful code rory, works great!
Now, another question about this code:
How to determine which IDE_DRIVE_NUMBER its a specified logical drive?.
I think an example explains better
-Two different hard disks with two partitions each one
-Drive A (serial hddaaa) contains partitions C: and D:
-Drive B (serial hddbbb) contains only one partition with assigned letter E: and another partiton unformatted.
If my app.path start with d:\ how to determine that it's in drive A?
Which value of IDE_DRIVE_NUMBER type belongs?
King regards & sorry for my english