PDA

View Full Version : Re: Getting Free Disk Space in Windows XP


guard
December 12th 03, 06:42 AM
"Barry Skidmore" > wrote in message
...
> I have found various batch file examples for Windows 9X that extract only
> the available disk space at the end of a 'dir' command and place it into
> an environment variable, however I have been unable to get any of them to
> work for Windows XP.
>
> Could someone please point me to a web site that might have a solution to
> this XP quirk.
>

* THIS IS AN NT/2K/XP/K3 Specific Answer *

The Mount/\Command ".GetFree" can give you free space for a
local/mapped drive or a UNC path as follows:

For a local/mapped drive

M:
%.GetFree%

For a UNC path

PUSHD \\Server\c$
%.GetFree%
POPD

*******

The related command ".GetFreeM" provides free space in Millions of bytes,
allowing accurate display and manipulation of up to about 1,862,645
Gigabytes free using only the builtin command set.

*******

More information and color-keyed examples:

(http://TheSystemGuard.com/MtCmds/GetValue/GetFree.htm)
(http://TheSystemGuard.com/MtCmds/GetValue/GetFreeM.htm)

*******

All of these are part of the .Mount/\Command Set (over 200 commands). These
are extensions to the builtin command set that perform CONSISTENTLY across
NT/2K/XP/K3 as well as providing self-documenting code for your scripts.

See (http://MountCommands.com) for more information.

*******

Notes:

1. .Mount/\Commands are constructed using ONLY builtin
commands common to all four platforms (NT/2K/XP/K3).
2. .M/\C's are NOT case sensitive. Mixed case is used
for visual clarity only.
3. The (FREE) Advanced NT/2K/XP Command Library
(ntlib.cmd) provides over 100 resources to assist
with writing and documenting cross-platform scripts,
including over 50 .M/\C's. You can obtain it
(for FREE) at (http://ntlib.com).

*******

-tsg
__________________________________________________ __________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!

Todd Vargo
December 12th 03, 06:44 AM
"guard" > wrote
>
> * THIS IS AN NT/2K/XP/K3 Specific Answer *

I have been meaning to ask you, what is K3?

--
Todd Vargo (body of message must contain my name to reply by email)

guard
December 12th 03, 06:46 AM
K3 is a two-letter acronym for Windows Server 2003.

-tsg
__________________________________________________ __________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!

"Todd Vargo" > wrote in message
...
>
> "guard" > wrote
> >
> > * THIS IS AN NT/2K/XP/K3 Specific Answer *
>
> I have been meaning to ask you, what is K3?
>
> --
> Todd Vargo (body of message must contain my name to reply by email)
>
>
>

Google