stopping windows services
David
David
Thu Aug 19 23:11:05 EDT 2004
Get WService from http://starship.python.net/crew/mhammond. Then, for
example:
import WService
import time
listener = WService.WService("Network Associates McShield")
listener.status(1)
if listener.status(0) != 'STOPPED':
print "Stopping Network Associates McShield..."
listener.stop()
time.sleep(5)
listener.status(1)
On Thu, 19 Aug 2004 21:52:33 -0400, Bart Nessux
<bart_nessux at hotmail.com> wrote:
>Can Python be used to stop windows services? I'm writing a script to
>automaically remove some troublesome Symantec software, but before
>running the main removal script, I need to kill some services.
>
>Thanks,
>Bart
More information about the Python-list
mailing list