Hi Javier,
QUESTION:
Which is the rigth disk number (Physical) or which line is better to use:
Debug.Print "Physical Disk: " & objDrive.Caption & " -- " & objDrive.DeviceID
or
Debug.Print "Disk Partition: " & objPartition.DeviceID
The right number is the one you want to know. Remember that (for local
drives, with exceptions that needn't concern us here) a logical drive
corresponds to a partition on a physical drive. So if you want to know
the physical drive associated with a logical drive you (as far as I
know) need to first find the partitition associated with the logical
drive, and then the physical drive that contains the partition.
I have never in my life needed to write code to do this, and never
expect to. One of the reasons we have operating systems is to save
developers from having to worry about the physical details. So all I can
do is point you again to the WMI documentation.