in reply to Re: Is a drive USB, IDE or SCSI?
in thread Is a drive USB, IDE or SCSI?

I have tried WMI using the Win32_DiskDrive class but this tells partition information. It does return InterfaceType but how do I map a particular drive letter to a partiton? I spent several hours on it last night but could not get it to work.

-------------------------------
by me
http://www.basgetti.com
http://www.kidlins.com

Replies are listed 'Best First'.
Re^3: Is a drive USB, IDE or SCSI?
by BrowserUk (Patriarch) on Dec 02, 2005 at 18:40 UTC

    You will probably need to query information from one of the other WMI classes to make the connection between drive letters, logical partitions and physical drives. OS classes page gives a list of them.

    Of particular interest to you will be Win32_DiskDriveToDiskPartition, Win32_LogicalDisk, Win32_LogicalDiskToPartition amongst others.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.