Matthias
Mon Jul 30 11:42:29 CDT 2007
Dominic Johnson wrote:
> I'm guessing that you have a SELECT statement that is something like
> ("SELECT * from Win32_LogicalDisk") - selecting all of the logical
> disks on the system.
>
> You may be able to use a combination of DriveType and MediaType
> properties to exclude the floppy disk drive.
>
> For example,
>
> ("SELECT * from Win32_LogicalDisk WHERE MediaType = 11")
>
> or
>
> ("SELECT * from Win32_LogicalDisk WHERE DriveType = 3")
>
> I don't have a system with a floppy disk drive available on so I
> haven't tested this.
>
It's not that easy.
While you can have a combined where clause
("SELECT * from Win32_LogicalDisk WHERE DriveType = 2 AND MediaType = 11")
See also :
<
http://msdn2.microsoft.com/en-us/library/aa394054.aspx>
<
http://msdn2.microsoft.com/en-us/library/aa394605.aspx>
DriveType hasn't to be 2 with every USB Stick and
MediaType may be 0 11 or 12 or more worse NULL.
Other MediaTypes between 0 and ~25 are all different floppy formattings.
<
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/Win32_LogicalDisk.asp>
The select forces an access to the flopy drive to detect the media - what
may cause OPs problem.
I'm still juggling with different sticks to find a way
--
Greetings
Matthias