restart service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a service from time to time needs to be restarted on my pc when I am
away from office. Is there a way to either script or batch to see 1. if it's
running, 2. and if not restart. I cant have office staff fumbling thru admin
tools.

Thanks
 
coconutt said:
I have a service from time to time needs to be restarted on my pc when I am
away from office. Is there a way to either script or batch to see 1. if it's
running, 2. and if not restart. I cant have office staff fumbling thru admin
tools.

Thanks

What service and why does it need to be restarted?

Steve N.
 
Then command 'net start servicename' will do what you want. It will just
give an error if the service is already running. Just put it in a batch file
and schedule it.
Louis
 
coconutt said:
its a time clock software that when I enter it an edit employee's, the
service stops.

That's odd. Have you contacted the maker of the software for support on
this issue? It seems to me that having to manually or otherwise restart
a software's service is due to a bug in the application.

Steve N.
 
Back
Top