- Feb 1, 2001
- 6,135
- 2
- 0
So here's the deal, we have some batch files that are run 24x7 on a few NT4 servers at work. In order to keep the batch files running the boxes are logged into locally, batch files started, and the server is locked. I'd like to srvany the batch file to prevent the need to stay logged in locally but the issue is that we need to stop the script on occasions. If you have used srvany with batch files before you know that stopping the service only kills cmd.exe and leaves whatever processes the batch file started running. At this point we would have to either login locally to the box and kill the process or telnet in and kill it which pretty much kills the point of running it as a service.
My question is does anyone know of a way to run srvany with a batch file and have all child processes die when the service is stopped?
Thanks in advance.
My question is does anyone know of a way to run srvany with a batch file and have all child processes die when the service is stopped?
Thanks in advance.