Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FSO OLE Error Code
Message
From
17/12/2001 15:32:51
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00595266
Message ID:
00595334
Views:
29
>>>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.
>
>No, it's running Win9x, and cast the return value as an Integer; the value returned is the largest available integer in a VFP integer value (2^31-1). It's a problem related to how Win9x interprets the data type; NT and NT derivatives will use a real rather than an integer, and will return the correct size. I thought this was corrected in WSH 2.1 or 5.

Is there an easy (or programmatic) way to tell which version of the WSH we have installed?
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform