Re: Getting Free Disk Space in Windows XP
Posted: 07-17-2003, 02:19 PM
> I have found various batch file examples for Windows 9X that extract only* THIS IS AN NT/2K/XP/K3 Specific Answer *
> 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.
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
For a UNC path
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:
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.
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).
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!