>>My error here. Use StringToInteger(SUBSTR(lcstruct, 13, 2)) > 1000. The build number is in the high order word. Let me know if this fixes it.
>
>Yes, that fixed it.
>
>>
>>BTW, why not use the DISKSPACE() function rather than GetDiskFreeSpace() or SYS(2020) for this?
>
>In this instance we are interested in the FULL size of the drives - we do an inventory of our hardware, cca 150 workstations, trough a ‘stealth’ program that runs at logon.
I understood that, but on pre-OSR2 machines, DISKSPACE() should return the same value as GetDiskFreeSpace(). I believe that the reason that both DISKSPACE() and SYS(2020) report erroneous results on larger drives is that they call GetDiskFreeSpace(). Or am I missing something. Just trying to save you some work here< g >.
>Q: Isn’t GetDiskFreeSpace() misleading, I’d call it GetDiskSpace()?
Kind of, but I think it was named that way for backward compatibility with Win16, but I'm not 100% certain of that.
George
Ubi caritas et amor, deus ibi est