>>>>>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.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up