**** Reload Counter ***

   What is it?  Basicly a VERY simple program to view a count on the console (display) of the # of passes made in a OS/2 batch file.  The reason I made this program was as a convenient and useful tool for me to track the # of times Xitami for OS/2 has to reload.  Example: under certain conditions Xitami will crash and quit.  Since I want my web server running 24/7 even when I am not there I use a os2 .cmd file to reload it.

{My old OS/2 .cmd file}
File Name: start-xitami.cmd
(
:xitami-startup
xitami
goto xitami-startup 
)

As you can see this simple .cmd file works well.  If I'm on vacation and Xitami crashes the .cmd file just reloads it back up.  Now I know I can go digging through the Xitami log files to see if there was a crash.  But I wanted an easy and quick visual clue when Xitami had to reload, aka Reload Counter (reloadc.exe).  Reload Counter can obviously be used in other .cmd files and if you file this little utility useful I am more than glad.

How it works:
     Pretty simple, just run reloadc.exe in your OS/2 .cmd file where you need it.  The first time reloadc.exe is run it will create a file called "countl.cfg".  This file will hold the count of the # of reloads.  So if your app clears your screen you still can create a desktop icon to load "countl.cfg" if you want to check it that way.  Below is the contents of my new Xitami startup .cmd file:

:xitami-startup
reloadc
xitami
goto xitami-startup
 
That's it. :) I basically wrote this program for myself for my own needs.  I am posting it so if someone else finds it of use they can use it as well.  This program is e-mail ware. ;)  Basically it's free for your own use.  All I ask is if you do find it useful just send me a e-mail and let me know fuzzydog@whiteshepherd.net .  (There is no warrantee for "Reload Counter" what so ever.  It has been tested and seems fine.  But use at your own risk.)  