Checking whether a service is up

Hi all,
Is there a way to check, via a batch script, whether a specific Windows Service is up??
Thanks,
Amir.
[131 byte] By [amirw] at [2007-11-20 1:51:52]
# 1 Re: Checking whether a service is up
I assume by up, you mean running. Look into sc.exe. You can get all the service information you need from that.
PeejAvery at 2007-11-10 3:39:28 >
# 2 Re: Checking whether a service is up
Thanks,

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

thanks again,
--amir.
amirw at 2007-11-10 3:40:28 >
# 3 Re: Checking whether a service is up
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
PeejAvery at 2007-11-10 3:41:33 >