>>>>>>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>>>>>oDrive = oFSO.GetDrive("D:\")
>>>>>>?oDrive.AvailableSpace && or
>>>>>>?oDrive.TotalSize
>>>>>>?oDrive.FreeSpace
>>>>>>
>>>>>>Doesn't work correctly on my D drive. It returns 2147155968 for all properties.
>>>>>
>>>>>Does this drive have any files? AvailableSpace and FreeSpace are supposed to be the same, but not TotalSize.
>>>>
>>>>I got the same result under Win98SE. I think it's Win95/98 limitation of 2Gb.
>>>
>>>I found a MSKB at MS, it's actually a bug in the FSO. See
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q225032>>
>>Thanks. The
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q225144 shows how to use GetDiskFreeSpaceEx (and this is what George's FAQ does as well for VFP), but it has this problem with >64GB drives. It seems to be a problem with Windows95 only. Windows NT returns this info correctly.
>
>Hi Nadya,
>
>Could you check which version of the WSH you're currently running?
=AGETFILEVERSION(gaArray, "scrrun.dll")
>?gaArray[4]
>If the major version is lower than 5.5, could you possibly try upgrading to 5.5 (
http://www.microsoft.com/msdownload/vbscript/scripting.asp ) and see if you still get the original OLE error, and size errors for drives > 64GB?
>
>BTW it looks like 5.5 is the latest version available for W95. 5.6 (at this point) requires W98 or later.
Al,
I've downloaded this file (5.5) from MS site. I installed it and it says, it was installed. However, it still shows version 5.1.0.5010 and the mentioned problems still exist. This is at work machine with Windows 95. I'll try at home today.
If it's not broken, fix it until it is.
My Blog