Click to See Complete Forum and Search --> : Checking whether a service is up


amirw
October 4th, 2006, 07:01 AM
Hi all,

Is there a way to check, via a batch script, whether a specific Windows Service is up??

Thanks,
Amir.

PeejAvery
October 4th, 2006, 08:43 AM
I assume by up, you mean running. Look into sc.exe. You can get all the service information you need from that.

amirw
October 5th, 2006, 10:54 AM
Thanks,

but... sc doesn't work on early platforms such as Windows 2000.
Any solution?

thanks again,
--amir.

PeejAvery
October 5th, 2006, 11:45 AM
Yes it does. What version do you have?

APPLIES TO
• Microsoft Windows NT Server 4.0 Terminal Server
• Microsoft Windows 2000 Server
• Microsoft Windows 2000 Advanced Server
• Microsoft Windows 2000 Professional Edition
• Microsoft Windows NT Server 3.51
• Microsoft Windows NT Server 4.0 Standard Edition