Tracy,

Is this any use?

* Program to call the API for Disk Space Calculation
* R.D Crozier
*
cpRootPathName=Space(50)
cpSectorsPerCluster=0
cpBytesPerSector=0
cpNumberOfFreeClusters=0
cpTotalNumberOfClusters=0
*
Declare GetDiskFreeSpace In kernel32 ;
        string @ cpRootPathName , ;
        integer @ cpSectorsPerCluster , ;
        integer @ cpBytesPerSector , ;
        integer @ cpNumberOfFreeClusters, ;
        integer @ cpTotalNumberOfClusters
nReturn=.F.
nReturn=GetDiskFreeSpace("C:\", ;
                                                @cpSectorsPerCluster, ;
                                                @cpBytesPerSector, ;
                                                @cpNumberOfFreeClusters, ;
                                                @cpTotalNumberOfClusters)

clear
? "Bytes Per Sector: "+Transform(cpBytesPerSector)
? "Sectors Per Cluster: "+Transform(cpSectorsPerCluster)
?
? "Free Clusters: "+Transform(cpNumberOfFreeClusters)
? "Free Space: 
"+Transform(cpBytesPerSector*cpSectorsPerCluster*cpNumberOfFreeClusters,"999,999,999,999")

-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Tracy Pearson
Sent: 12 November 2015 15:11
To: [email protected]
Subject: VFP check for disk space

Has anyone implemented a check for disk space to protect against loss of data. 
The VFP tables will be local or on a network.

I haven't researched this yet, it is more a question at the moment.

Thank you,
Tracy


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to