>>>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.
>
>I'm at home now. Windows 98.
>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oDrive = oFSO.GetDrive("C:\")
>?oDrive.AvailableSpace && or
>?oDrive.TotalSize
>?oDrive.FreeSpace
>?oDrive.Size
>=AGETFILEVERSION(gaArray, "scrrun.dll")
>?gaArray[4]
>
>It gave me the same Error and same problems. My current version is 5.0.0.3715
>
>I'll try to upgrade and post back results.
I've downloaded scr55en.exe and ran it. It said, that WSH 5.5 was successfully installed. However, I still have the same problems and gaArray[4] returns 5.1.0.5010 So, I don't really understand it.
If it's not broken, fix it until it is.
My Blog