home *** CD-ROM | disk | FTP | other *** search
- Keeping Tabs on Hard Disk Space: The Disk Space Meter
-
- by Brett Glass
-
- Running out of disk space while you're running Windows can be more than
- just an inconvenience; it can cost you hours of work. Many Windows
- applications do not have good contingency plans for dealing with low disk
- space, and Windows itself can sometimes crash if you don't have enough room.
- On a network, these problems can crop up for dozens of users at once if the
- server runs out of space. In short, the power freedom Windows gives you comes
- with a price: eternal vigilance. So, to help you maintain a watch on disk
- space when things get tight, we offer a simple utility: the Disk Space Meter.
-
- The Disk Space Meter pops up a small window (see photo) that shows the
- percentage of free disk space, the amount of free space, and a "gas gauge"
- display that's readable from across the room. If you minimize the window, the
- icon comes to life and shows the same gauge display plus the percentage of
- free space. (The icon's caption always shows the letter of the drive being
- monitored, so you will be able to distinguish the icons for different drives
- if you have several meters running at once.) You can set the interval at
- which the statistics are updated by entering a number of seconds, from 1 to
- 99, in the box. (If you use the Disk Space Meter to monitor a floppy, you will
- probably want to set the interval to a large number, since the drive must spin
- up each time the free space is determined.) Pull down the drive list at the
- bottom of the window to change the drive being monitored.
-
- Revealing Readings
-
- Watching the amount of free disk space on your system can be revealing. If
- you're running Windows without a permanent swap file, you may be surprised (or
- even alarmed!) to see how much less disk space you have while running Windows
- than you do at the DOS prompt. This is especially true in 386 Enhanced Mode,
- where Windows can create large temporary swap files. What's more, because the
- tempoarary swap file always stays at its peak size (that is, it grows when
- more room is needed, but never shrinks during a Windows session), you may find
- that simply running many memory-intensive applications can leave you with no
- disk space. Applications -- especially programs that work with high-resolution
- graphics -- often create huge work files of their own.
-
- If the Disk Space Meter reveals that free disk space has dropped too low for
- comfort, there are several remedies. If a temporary swapfile is encroaching on
- your space, you can change the MinUserDiskSpace parameter in the [386Enh]
- section of your SYSTEM.INI file. This parameter tells Windows not to grow its
- temporary swapfile unless a minimum amount of free space will remain on the
- hard disk. The default, MinUserDiskSpace=500, reserves 500K for your own
- files. But since some applications need more, you may want to boost this
- to a megabyte or two. Other solutions include doing some housecleaning (who
- couldn't stand to throw away a few old files?), buying more disk, or using an
- on-the-fly compression utility like Stacker. (If you do use Stacker, I
- strongly recommend the hardware-based version, which actually speeds up
- Windows on some systems.)
-
- If you're a network administrator, you may want to keep one or more disk meter
- windows up at all times so you can keep an eye on your servers. Several
- meters, tiled on the screen along with your network management software,
- make a powerful and visually appealing network control center.
-
- Installation
-
- To install Disk Space Meter, simply copy the .EXE file, METER.EXE, to a
- convenient directory (I recommend that you place it right in your main Windows
- directory). Also copy the dynamic link library MSDOS.DLL to your main Windows
- directory; the meter will not run properly without it. Finally, if you don't
- own Visual Basic, and don't already have the Visual Basic runtime DLL
- (VBRUN100.DLL) on your hard disk, copy that file to your Windows directory as
- well. You can then use the "New..." option on the Program Manager's "File"
- menu to add METER.EXE to the program group of your choice. Enjoy!
-
- --Brett Glass
-
- Author Bio: Brett Glass is a programmer, author, and electrical engineer
- residing in Palo Alto, California. You can reach Brett by e-mail at
- "rogue@well.sf.ca.us", accessible as an Internet address from MCI Mail,
- Usenet, CompuServe, and most other online services.