SAMPLE: Getdrive.exe: How To List the Drives on a Win32 SystemID: Q176804
|
This code example uses Windows Application Programming Interface (API)
functions to return information on the drives installed or mapped to the
local computer. These drives include both CD-ROM devices and network hard
drives.
The following file is available for download from the Microsoft Software
Library:
Getdrive.exeFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services
This code example provides information about the drives installed and
mapped to a given computer, including CD-ROM drives. The following
information about each individual drive appears within a window created by
the MessageBox() function:
DO GetDrive.prg
Additional query words: API drives
Keywords : kbcode kbfile kbsample kbnokeyword kbVFp300 kbVFp500 kbVFp600
Version :
Platform :
Issue type :
Last Reviewed: August 8, 1999