Is it possible to detect when windows is shutting down, restarting, or logging off. I have two applications that don't seem to be able to figure that out, and it causes all kinds of errors during the above events. So I'd like to have a little script running in the background that will detect the event and kill the two processes. Thanks, Kenny