declare short GetDiskFreeSpaceEx in Win32API ; string @lpDirectoryName, string @lpFreeBytesAvailableToCaller, ; string @lpTotalNumberOfBytes, string @lpTotalNumberOfFreeBytes store replicate(chr(0), 8) to lcCaller, lcTotal, lcFree if GetDiskFreeSpaceEx(@lcDir, @lcCaller, @lcTotal, @lcFree) <> 0 68 lnResult = Hex2Decimal(iif(tlTotal, lcTotal, lcFree)) endif GetDiskFreeSpaceEx(@lcDir, ...
68 lnResult = .Hex2Decimal(iif(tlTotal, lcTotal, lcFree))
What happens is the program crashes in the middle of a re-index and my indexes are lost. (Yuck)