in reply to Floppy Drive Problems

In your "foreach my $wmiDiskDrive" loop, first check for
$wmiDiskDrive->{MediaType}
to be the type of disk you expect:
From MSDN:

MediaType

Data type: string
Access type: Read-only

Type of media used or accessed by this device. Values are:

"Removable media"
"Fixed hard disk"
"Unknown"

     You're just jealous cause the voices are only talking to me.

     No trees were killed in the sending of this message.    However, a large number of electrons were terribly inconvenienced.

Replies are listed 'Best First'.
Re^2: Floppy Drive Problems
by slloyd (Hermit) on Dec 05, 2005 at 05:30 UTC
    Excellent idea but it didn't work. Anytime Win32_LogicalDiskToPartition is called it must do a select * because it seeks the floppy drive ever time, even if you are not looking for the floppy.

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

      Hmm - you are absolutely right.(++)

      I did try an alternative method - to access Win32_MappedLogicalDisk, to get to the same info, but that does not seem to work at all (Win XP). There is no indication of any error, and it returns zero logical drives.

      Sounds like you need to waste more time talking to M$ tech support, since Google provides no clues on this one.

           You're just jealous cause the voices are only talking to me.

           No trees were killed in the sending of this message.    However, a large number of electrons were terribly inconvenienced.