I have created a dummy windows service using the following command:
sc create TestService binPath= C:\Temp\TestService.exe DisplayName= "TestService " start= auto
It successfully created a dummy service in services.msc but I would also need it to show a 'Started' status. I know this will require a bit of coding and my TestService.exe is blank.
Any idea how? I searched thru the net and it requires MS Visual Studio 2010 etc. Looks too complicated, all I need is a blank service that shows a 'Started' status that will be used for testing purpose.
After that, you'll have a service named after step 6, which you can start, stop, restart...
Hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With