rgareme
11 years agoOccasional Contributor
Disable a windows service from a TestComplete script
How can i disable a windows service from a TestComplete script? I have found an smartbear link in which there are an script for start and stop a windows service, but what i need is an script to...
- 11 years agovar sServiceName = 'myServiceName'
var sCmd = 'sc config ' + sServiceName + ' start= disabled'
var wshShell = Sys.OleObject ('WScrit.Shell')
wshShell.Exec (sCmd)