Home > Commands A-M > Batch F

FREEDISK


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Checks to see if the specified amount of disk space is available before continuing with an installation process.


Syntax

FREEDISK [/s computer [/u [Domain\]User [/p password]]] [/d drive] [value]


Parameters
value (NT2003)
Checks for a specific amount of free disk space. You can specify bytes, KB, MB, GB, TB, PB, or NB.

Switches
/d drive (NT2003)
Specifies the drive for which you want to find out the availability of free space. You must specify drive for a remote computer.
/p password (NT2003)
Specifies the password of the user account that is specified in /u.
/s computer (NT2003)
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u [Domain\]User (NT2003)
Runs the command with the account permissions of the user specified by User or Domain\User. The default is system permissions.

Related

none.


Notes

Joachim Proske found if you use:

    FREEDISK /D \\DEFRMFS2\TEST 20GB
it is possible to test a network Share without needing to code Accountinformations and Passwords in a Script.

He tested several UNC-Paths and I found no Problem with an Account who has access rights to the Share in question.


Examples

Determine if at least 50 MB of free space available:

    freedisk 50mb

Errorlevels
Availability
External
DOS
none
Windows
none
Windows NT
NT2003

Last Updated: 2005/12/01
Direct corrections or suggestions to: Rick Lively