Talk About Network

Google





Software > Basic Dos > Checking if a s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 641 of 700
Post > Topic >>

Checking if a service exists and is running

by "Another Brian" <notbrian@[EMAIL PROTECTED] > Dec 20, 2007 at 08:41 AM

I need to write a bat file to check if a service exists on a PC and if 
so, check if it's running and, if not, start it. Starting it is the 
easy part.

net start albd

Which I could do but if the service doesn't even exist of a client it 
displays an error which confuses the users.

Is there a way to query if a service is installed on a client and, if 
so, is it running?

I'm trying to do this in a bat file, but other languages would be 
acceptable. I'm real rusty on writing bat files.

Thanks
Brian
 




 3 Posts in Topic:
Checking if a service exists and is running
"Another Brian"  2007-12-20 08:41:04 
Re: Checking if a service exists and is running
"Judson McClendon&qu  2007-12-20 10:45:37 
Re: Checking if a service exists and is running
"Another Brian"  2007-12-20 09:45:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 20:45:50 PST 2009.