Ask a Question

How to verify the stopped or running windows services.

sarya
Frequent Contributor

How to verify the stopped or running windows services.

Hi,



I have a test where I need to verify that if I run a.bat file to stop a service , the service stops and is no longer running.



The name of service appears as "AppToService_Report2Web Router" and status is stopped.



Can we code to verify this ?



Thanks,

Sumedha
2 REPLIES 2
AlexKaras
Community Hero

Hi Sumedha,



E.g.: http://msdn.microsoft.com/en-us/library/aa394602(VS.85).aspx
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

Hi Sumedha,


Please refer to this page of our web site. It contains a sample script demonstrating how to accomplish your task.


Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: