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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Drives / Drive Space

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
I am trying to design a routine to determine the ammount of disk space and all the drives on a computer. Does anyone know of a system call designed to do this?

SmileeTiger
 
Hi

You can inspire yourself from a component added by AppWizard

Select menu 'Project | Add to Project | Components and Controls'

Double-click on Visual C++ Components

Double-click on item 'System Info for About Dlg.' and confirm with Ok

Now you have in the function OnInitDialog of your about box all the code required to get disk data.

HTH

Thierry
EMail: Thierry.Marneffe@swing.be
 
Hi

I've written a sample application that shows the main data of the drives of a machine (Volume Name, Disk Capacoty, FreeSpace, Status, ..)

You can download the source code at the following address:


Select 'GetDiskData' in Visual C++ Programming Area

HTH

Thierry
EMail: Thierry.Marneffe@swing.be
 
There are some system functions:
DoesDriveExistrs, GetLogicalDriveString, GetDriveType, GetVolumeInformation, GetDiskFreeSpace, SetVolumeLabel John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top