Tools@BasicAware

CheckDiskFree

Purpose

CheckDiskFree determines if a disk's free space passes the test of the provided parameters and returns an ERROR_LEVEL, which may be used and act upon in batch files.


Download

Command line application CheckDiskFree


Installation

None. Download the ZIP file, extract the included executable and run it.

Please note: this is a console application. You should run it from a command prompt.


Use case(s)


Syntax

CheckDiskFree /d=<disk/drive> /s=<size> /c=<compare argument>

Parameters:

Examples

CheckDiskFree /d=d: /s=1000000 /c=1

Determine if the available free space on hard drive d: is greater than 1 million bytes.

CheckDiskFree /d=c: /s=512mb /c=-2

Determine if the available free space on hard drive c: is lesser than or equal to 512 megabytes.

Upon exit, CheckDiskFree returns one these ERROR_LEVEL values:


Source code

The PowerBASIC source code is available at Github


Known issues / limitations


Version

15.10.2024

Navigation

Tools

Info

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Germany License .
All contents copyright © 2012-2024 by BasicAware, Knuth Konrad