The two Windows API function calls that interest you are: GetLogicalDrives GetDriveType
GetLogicalDrives returns a list if valid drives in the system and for each drive, call GetDriveType to determine whether it is a local drive, removeable, network, etc. ----- Original Message ----- From: "Cheng Wei (ASL)" <[EMAIL PROTECTED]> To: "'NZ Borland Developers Group - Delphi List'" <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 4:49 PM Subject: [DUG] Local Hard Drives > Hi, > > Say a PC has the following drives: > > C: Local HDD > D: Local HDD > E: CD Drive > F: Mapped Network Drive > > Is there an API function I can call in my program to retrive the local > drives only (i.e. drive C: and D:)? > > Thanks > Cheng > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003 > > > ############################################################################ ######### > This e-mail message has been scanned for Viruses and Content and cleared > by MailMarshal > For more information please visit www.marshalsoftware.com > ############################################################################ ######### > _______________________________________________ > Delphi mailing list > [EMAIL PROTECTED] > http://ns3.123.co.nz/mailman/listinfo/delphi > _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
