AvailableSpace()
Returns the number of bytes presently available for the current user on the
specified drive.
This value is not necessarily the free disk space.
FreeSpace()
Returns the number of free bytes in the specified drive.
The difference is "for the current user".
The WSH 5.6 documentation states:
"The value returned by the AvailableSpace property is typically the same as
that returned by the FreeSpace property. Differences may occur between the
two for computer systems that support quotas."
A direct quote from the documentation:
"...
The value returned by the AvailableSpace property is typically the same as
that returned by the FreeSpace property. Differences may occur between the
two for computer systems that support quotas.
..."
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
> "The value returned by the AvailableSpace property is typically the
> same as that returned by the FreeSpace property. Differences may occur
> between the two for computer systems that support quotas."
Ah, that explains it. In my ASP 3.0 Reference (Wrox Press), it uses the
phrase "current user" for both properties, apparently mistakenly.
Wrox's Professional Active Server Pages 3.0 states:
AvailableSpace() = Returns the amount of avaliable space to this user on the
drive, taking into account quotas and/or other restrictions.
FreeSpace() = Returns the actual total amount of free space available on the
drive.
Wrox's Professional Active Server Pages 2.0 states:
AvailableSpace() = Returns the amount of avaliable space on specified drive.
FreeSpace() = Returns the amount of free space on specified drive.