Jovani_smo
12 months agoOccasional Contributor
How to start service Windows with TestComplete
Hi guys!
I'm using Windows 10 and TC 15.54.
Using WMI.GetServiceState I can get the status of the service, in this case it is Stopped.
How do I start this service through TestComplete?
I already tried, but it didn't work...
var ServiceName = 'Sysmo S1 Task Scheduler';
WshShell.Run("net start" + ServiceName);
Yes, it works... I solved it by opening the CMD screen and running there 🙂