home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / w3_disk / meter.arj / READ.ME < prev   
Encoding:
Text File  |  1991-12-07  |  4.3 KB  |  75 lines

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