Scalabium Software

SMReport Autogenerated
Knowledge for your independence'.
Home Delphi and C++Builder tips


#31: How can I detect a drive type?

If you want to detect a drive type (CD/Floppy/Network...), then you must use a GetDriveType function from Windows API.

For example,

  case GetDriveType('C:\') of
    0: <unknown>;
    1: <root directory does not exist>;
    DRIVE_REMOVABLE: <floppy>;
    DRIVE_FIXED: <hard drive>;
    DRIVE_REMOTE: <network>;
    DRIVE_CDROM: <CD-ROM>;
    DRIVE_RAMDISK: <RAM disk>;
  end;


Published: October 12, 1999

See also
 
Fast Document Viewer
Metafile Convert
Viewer for TNEF-files (winmail.dat)
DBISAM Viewer
Viewer for MS Outlook Messages
ABA Spreadsheet Convert
SMExport suite
SMDBGrid
Paradox Password Recovery
Excel Reader (dll)
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2024, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport advertising