Hey does anyone know how to write a component running on a server to start and stop a component also running on the server? It shoul also know when the service is running or not i tried placing this in a batch file on the server:
net stop accsevice where 'accservice' is the service name I then installed a component on the server(from serverobjects.com) that runs an application with given parameters ASPEXEC "net start accservice" and "net stop accservice"
The funny thing is if the command would not be affecting the service's state ie starting it if it was already started or stopping it if it was not started then a message would be returned on stdio "the <service name> is already started or has not been started. However if I was trying to start it for the first time I would get system error 5 Access Denied. I have a deadline to meet soon so could someone point me in the right direction?
email jafisher2000@hotmail.com
net stop accsevice where 'accservice' is the service name I then installed a component on the server(from serverobjects.com) that runs an application with given parameters ASPEXEC "net start accservice" and "net stop accservice"
The funny thing is if the command would not be affecting the service's state ie starting it if it was already started or stopping it if it was not started then a message would be returned on stdio "the <service name> is already started or has not been started. However if I was trying to start it for the first time I would get system error 5 Access Denied. I have a deadline to meet soon so could someone point me in the right direction?
email jafisher2000@hotmail.com