2006年11月16日 星期四 14:25
On 11/16/06, nmweizi [nmweizi在163.com] wrote: >import win32serviceutil >win32servieutil.StopService(servicename) >in32serviceutil.StartService(servicename) ÎÒÕâô䵫ÊDZ¨´í£¬Ö¸µãһϣ¬Ð»Ð»£¡ import win32service print "begin" schSCManager = win32service.OpenSCManager( None, None, win32service.SC_MANAGER_ALL_ACCESS) schService = win32service.OpenService(schSCManager, "alerter", win32service.SERVICE_ALL_ACCESS) args = [] win32service.StartService(schService, args) print "end" ±¨´í£º Traceback (most recent call last): File "E:\pyxml_test\tst_service.py", line 8, in -toplevel- win32service.StartService(schService, args) error: (1058, 'StartService', '\xce\xde\xb7\xa8\xc6\xf4\xb6\xaf\xb7\xfe\xce\xf1\xa3\xac\xd4\xad\xd2\xf2\xbf\xc9\xc4\xdc\xca\xc7\xd2\xd1\xb1\xbb\xbd\xfb\xd3\xc3\xbb\xf2\xd3\xeb\xc6\xe4\xcf\xe0\xb9\xd8\xc1\xaa\xb5\xc4\xc9\xe8\xb1\xb8\xc3\xbb\xd3\xd0\xc6\xf4\xb6\xaf\xa1\xa3') -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20061116/10c40ad1/attachment.htm
2006年11月16日 星期四 14:56
python-chinese£¬ÄãºÃ ÊÇwin32serviceutil£¬²»ÊÇwin32service nmweizi£¬nmweizi在163.com 2006-11-16 ----- Original Message ----- From: ÍõÃ÷ To: python-chinese Sent: 2006-11-16, 14:25:17 Subject: Re: [python-chinese]ÇëÎÊ£º×îеÄpython°æ±¾¿ÉÖ§³Öwindowsϵ÷ÓÃspawnlp On 11/16/06, nmweizi [nmweizi在163.com] wrote: >import win32serviceutil >win32servieutil.StopService(servicename) >in32serviceutil.StartService(servicename) ÎÒÕâô䵫ÊDZ¨´í£¬Ö¸µãһϣ¬Ð»Ð»£¡ import win32service print "begin" schSCManager = win32service.OpenSCManager( None, None, win32service.SC_MANAGER_ALL_ACCESS) schService = win32service.OpenService(schSCManager, "alerter", win32service.SERVICE_ALL_ACCESS) args = [] win32service.StartService(schService, args) print "end" ±¨´í£º Traceback (most recent call last): File "E:\pyxml_test\tst_service.py", line 8, in -toplevel- win32service.StartService(schService, args) error: (1058, 'StartService', '\xce\xde\xb7\xa8\xc6\xf4\xb6\xaf\xb7\xfe\xce\xf1\xa3\xac\xd4\xad\xd2\xf2\xbf\xc9\xc4\xdc\xca\xc7\xd2\xd1\xb1\xbb\xbd\xfb\xd3\xc3\xbb\xf2\xd3\xeb\xc6\xe4\xcf\xe0\xb9\xd8\xc1\xaa\xb5\xc4\xc9\xe8\xb1\xb8\xc3\xbb\xd3\xd0\xc6\xf4\xb6\xaf\xa1\xa3') -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20061116/6ae65c23/attachment.html
Zeuux © 2025
京ICP备05028076号