I have an external program that requires the disk number (0, 1, 2 ... ) and I am looking to wrap it with an AutoIt script. Is there a way to get the disk number from the drive letter of a partition?
Tom Brown
That's cool. Going to my special folder of special folders of... special things. edit: I did some thinking ( ) and I'm confused by the return values of the duck's code. For me it returns something like this: DiskDrive = \\.\PHYSICALDRIVE0 Caption = WDC WD1200JS-00MVB1
Partition = Disk #0, Partition #0
LogicalDisk = C:
Partition = Disk #0, Partition #1
LogicalDisk = F:
Partition = Disk #0, Partition #2
LogicalDisk = G:
LogicalDisk = H:
Partition = Disk #0, Partition #3
LogicalD