Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drive Letters

Status
Not open for further replies.

Leroy1981

Programmer
Jul 22, 2002
46
US
How would i find out which letter is assigned to a computer's hard drive or cd-rom.
 
Look at the WINAPI functions GetLogicalDrives() and GetDriveType().

You can use GetLogicalDrives() to determine which drive letters are available and then GetDriveType() to determine what type of a drive it is.

Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top