E
Edward Scott
Is there any way to issue a special 'quit' command for a custom service
installed with instsrv.exe and srvany.exe??
I have a batch file that launches a text-based java application. This
java application accepts input from the command prompt window, and in
order to quit one must issue it a 'q' command. This quits the java
program; the batch file subsequently ends and the command prompt window
closes.
I have installed a service using instsrv.exe and srvany.exe that runs
this batch file. It starts up without a problem; it does not quit
properly. When I use the services manager to stop my service, it
reports that the service is stopped but the application is unaffected.
Even if it managed to force the application to close, this would be far
from ideal.
I would like some means of issuing the 'q' command to the application
whenever the service is told to stop, so that it shuts down properly.
Is there a way to do this? If not, can anyone think of an effective
workaround?
installed with instsrv.exe and srvany.exe??
I have a batch file that launches a text-based java application. This
java application accepts input from the command prompt window, and in
order to quit one must issue it a 'q' command. This quits the java
program; the batch file subsequently ends and the command prompt window
closes.
I have installed a service using instsrv.exe and srvany.exe that runs
this batch file. It starts up without a problem; it does not quit
properly. When I use the services manager to stop my service, it
reports that the service is stopped but the application is unaffected.
Even if it managed to force the application to close, this would be far
from ideal.
I would like some means of issuing the 'q' command to the application
whenever the service is told to stop, so that it shuts down properly.
Is there a way to do this? If not, can anyone think of an effective
workaround?