home *** CD-ROM | disk | FTP | other *** search
- ===========================================================================
- FREE 1.5 26-Jan-1994
- ===========================================================================
- Copyright (C) 1994 by Harald Bögeholz
-
-
- FREE is a free command line utility program that shows the free space
- on one or more drives. Color is used to allow you to see at a glance
- when disk space gets critically low. FREE also shows the amount of
- free memory as returned by DosMemAvail(), which is pretty useless
- under OS/2 2.x.
-
-
- Installation
- ============
-
- Very simple. Just copy FREE.EXE to a directory in your PATH. FREE is
- a bound 16-bit program, so it can be called from DOS sessions, too. You
- will probably want to add a line to CONFIG.SYS for configuration (see
- below).
-
-
- Usage
- =====
-
- Just type FREE to see the free space on all drives (except floppies)
- that FREE can find. If FREE has been configured properly, it will show
- only the drives you configured in addition to the current drive.
-
- Use
-
- FREE <drive>:
-
- to show the free space on that drive only, or
-
- FREE .
-
- to just display the free space on the current drive.
-
- When FREE is used to display the free space on a single drive, it
- sets the ERRORLEVEL to the free space in megabytes. It will however
- not set ERRORLEVEL to values greater than 255. This can be used in
- batch files to determine if there is enough disk space available.
-
-
- Configuration
- =============
-
- To configure FREE, set the environment variable FREECFG in your
- CONFIG.SYS (and AUTOEXEC.BAT if you use DOS sessions). FREECFG
- contains a comma separated list of all drives to be displayed, for
- example:
-
- SET FREECFG=C,D,E,F,G,X
-
- By default, FREE uses colors for displaying the free space: green, if
- more than 10 percent are free, yellow if between 5 and 10 percent are
- free, and red otherwise. The colors are generated by using ANSI escape
- sequences, so you need to have the ANSI.SYS driver or equivalent
- installed for your DOS sessions. ANSI.SYS is not required for OS/2
- sessions.
-
- If you don't want colors, use an asterisk (*) as the first character
- of the variable, like this:
-
- SET FREECFG=*C,D,E,F,G,X
-
- To specify absolute threshold values for the display colors, you can
- use the following syntax:
-
- SET FREECFG=C[2M/1M],D[20M/10M],E[20M/10M],H[1M/50K]
-
- The first of the two numbers in brackets is the "yellow threshold",
- and the second is the "red threshold". Be sure to use exactly the
- characters shown and no spaces since FREE is very picky about the
- syntax of this variable.
-
- In the above example, drive C will display in red if <=1M is free, in
- yellow if >1M and <=2M is free, and green otherwise. For small drives
- like RAM disks you can also use KBytes as shown in the above example
- for drive H:.
-
-
- License
- =======
-
- Everybody is allowed to use FREE freely, as the name suggests. Have
- fun with it.
-
- For comments, bug reports, corrections to my English etc. I can be
- reached at <hwb@mathematik.uni-stuttgart.de>.
-
-
- Harald Bögeholz
-