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