delphi - how can i exclude the virtual drives from the drives array -


I got a string of all the drivers found in my computer, so I found their type to exclude the CD drive But I want to remove the virtual drive because I return the real CD drive and virtual drive (flash memory, USB ...)?

Sara, I think your real question should be, how can I determine that when someone Is CD-ROM (or any) drive virtual drive? Therefore the answer to this question is: The virtual drive works like a physical CD / DVD drive and behaves, there is no such property which identifies the drive as virtual , because so far Do not know any trusted method to determine when the drive is virtual. As a possible solution for you, make a list of only the approximation virtual drive associated with SCSI , IDE drivers (something like a dictionary) (eg strings like Virtual CloneDrive ), you can associate the associated SCSI or IDE controller with the CDROM drive and determine whether the drive is virtual or not, you can search in the list of your virtual drive controllers.

Comments