is there a "better" GetDriveType() lazarus / 67-Windows ---------------------------------------------------------------------- speter · 2020-11-21 03:04 G'Day Folks, I have a simple project which lists some info about the attached drives etc (project attached). In part, it uses GetDriveType(), which returns the following (there is an image, if you care )   C: Fixed Drive   D: CD-ROM Drive   E: Floppy Drive (removable)   F: Fixed Drive In reality, drives D+E are a USB stick (with an embedded virtual CD); and drive F is a portable SSD (not fixed). (Drive C is also a SSD). Is there a better function for getting information about the drives!? Also, are there functions for getting the partition info? I have a bunch of these USB sticks and would love the delete the CD partition from most of them, but that is different story... I could probably use Partition-Magic or a similar app to do that. cheers S. ---------------------------------------------------------------------- balazsszekely · 2020-11-21 07:54 QuoteIs there a better function for getting information about the drives!? Also, are there functions for getting the partition info? Try this: https://theroadtodelphi.com/2011/10/25/wmi-tasks-using- delphi-%E2%80%93-disks-and-file-systems/