The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: starzboy on March 31, 2009, 08:37:24 PM

Title: Removable Media - Drives
Post by: starzboy on March 31, 2009, 08:37:24 PM
I wish to list all the removable media into a list box

I am using GetDriveType to get the removable drives (DRIVE_REMOVABLE), this works fine, but it also includes the floppy drives, how can i exclude the floppy drive ? I just wish to include the USB flash drives ?

please help
Title: Re: Removable Media - Drives
Post by: dedndave on April 01, 2009, 10:33:30 AM
floppies ARE removable
but - seems simple enough to always remove A: and B: if they are present
Title: Re: Removable Media - Drives
Post by: BlackVortex on April 02, 2009, 12:09:13 AM
Try that :
http://www.codeguru.com/FORUM/showthread.php?t=375012