• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

space on disc

How can I find how much space I have left on my hard disc (command or API)
0
yairsa
Asked:
yairsa
1 Solution
 
sthungCommented:
In Win16 and DOS platform
use
void getdfree(unsigned char drive, struct dfree *dtable);

In win32 platform

Use
BOOL GetDiskFreeSpace(

    LPCTSTR  lpRootPathName,      // address of root path
    LPDWORD  lpSectorsPerCluster,      // address of sectors per cluster
    LPDWORD  lpBytesPerSector,      // address of bytes per sector
    LPDWORD  lpNumberOfFreeClusters,      // address of number of free clusters  
    LPDWORD  lpTotalNumberOfClusters       // address of total number of clusters  
   );

0
 
yairsaAuthor Commented:

0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now