RhythmAddict112
Programmer
Hi. Im going to try to be as concise as possible - Okay. I have a .vbs that does checks a database every X minutes (using WScript.Sleep 100, see )
It gives one argument on the command line which is actually fed into the WHERE clause of the sql. If there are results, it mails them....If there are not, it does nothing, sleeps for X minutes and then repeats the process.
With me? Okay good. This all works no problem but it could be better. For one, this right now is an endless loop. Is there a way for me to gracefully exit the program once it running?
It gives one argument on the command line which is actually fed into the WHERE clause of the sql. If there are results, it mails them....If there are not, it does nothing, sleeps for X minutes and then repeats the process.
With me? Okay good. This all works no problem but it could be better. For one, this right now is an endless loop. Is there a way for me to gracefully exit the program once it running?