Program to Display Swap File Size

Listed below is a small program, SWAPSIZE, which may be used to monitor the size of SWAPPER.DAT. The size is displayed in a PM window. The size of SWAPPER.DAT is queried every 10 seconds and the display updated when the size changes. The sampling interval can be changed to either 30 seconds or 60 seconds by selecting the Interval action bar. By default the program assumes the swap file to be C:\OS2\SYSTEM\SWAPPER.DAT. If this is not the case then when executing SWAPSIZE a command line parameter must be included which gives the full path and file name of the swap file.


[Back: Source Code MEMLAB4.C]
[Next: Source Code SWAPSIZE.C]