Fernando D. Bozzo wrote on 2015-11-13: > Andy, you are dividing wrong. Must divide by 1024 and 1024 again to obtain > MB (really MiB). > El 13/11/2015 6:19 a. m., "AndyHC" <[email protected]> escribió: > >> && VFP9 on Win7 64bit:- >> ? DISKSPACE() && 5.029E+11 >> nD= DISKSPACE() >> ?nD/1000000 && 502992.04 >> >> C: > Properties shows 502,715,675,776 - which is near enough (but why the >> difference?). >> >> On 12/11/2015 23:39, Fred Taylor wrote: >> >>> Since when? I just ran it on my network drives (500GB+free) and it >>> returns >>> a valid number, certainly way more than 2GB. >>> >>> Fred
Thank you for all the input. We have multiple OS's, Servers versions with shares and even a Samba share. If the user doesn't have access to the path a -1 is returned. When the user does have access, DiskSpace() returns a fairly accurate value for all options. It also works with UNC paths as well as shared drive lettes. If I implement this, I'll use DiskSpace(). Tracy Tracy Pearson PowerChurch Software _______________________________________________ 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.

