freedisk


freedisk

Checks for free space on a disk.

Syntax

 freedisk [/s   Computer   [/u [   Domain   \]   User   [/p [   Password   ]]]] [/d   Drive   ] [   Value   ] 

Options

/s Computer /u [Domain\]User /p [Password]

Name or IP address of a remote computer (if omitted, defaults to local computer) and credentials for running the script (if omitted, defaults to SYSTEM built-in identity).

/d Drive

Drive to check for free space.

Value

Amount of free space to check for (can be in bytes, KB, MB, GB, TB, PB, or NB).

Examples

Check if E: drive has at least 100-MB free space:

  freedisk /d e: 100MB  SUCCESS: The specified 104,857,600 byte(s) of free space are available on "E:\" volume. 

Notes

When performing unattended installations, use freedisk in a batch file to verify sufficient free space for the installation to proceed.

See Also

defrag , diskpart , Disks , format , freedisk



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net