Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drive.FreeSpace & Drive.AvailableSpace- what's the difference?

13 views
Skip to first unread message

Don Quixote

unread,
Jan 31, 2003, 7:26:28 PM1/31/03
to
The subject pretty much describes it. What's the difference?

McKirahan

unread,
Jan 31, 2003, 11:04:23 PM1/31/03
to
As described in Wrox's Windows Script Host Programmer's Reference:


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."


Michael Harris (MVP)

unread,
Jan 31, 2003, 11:36:05 PM1/31/03
to
Don Quixote wrote:
> The subject pretty much describes it. What's the difference?

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


Don Quixote

unread,
Feb 1, 2003, 12:08:39 AM2/1/03
to
"McKirahan" <Ne...@McKirahan.com> wrote in
news:bHH_9.109577$rM2.50549@rwcrnsc53:

> "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.

McKirahan

unread,
Feb 1, 2003, 12:55:57 PM2/1/03
to
You already have the answer; here's more about it anyway:


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.


0 new messages