2006年11月16日 星期四 16:11
On 11/16/06, nmweizi [nmweizi在163.com] wrote: > ÔÚwin32serviceutil.pyÖÐÒѾ¶¨ÒåºÃÁË¡£ÈçÏÂÖ±½Óµ÷ÓÃwin32serviceutil.StartService¾Í¿ÉÒÔÁË£¬ÎªÊ²Ã´»¹Òª×Ô¼ºÐ´£¿£¿£¿ ÎÒÊÇ»ÉßÌí×ãÁË£¬µ«»¹ÊÇÓÐÎÊÌ⣬ÊDz»ÊDZàÂëÎÊÌâ°¡£¬Ö¸µãһϣº import win32serviceutil win32serviceutil.StartService( 'test_service') ±¨´í£º Traceback (most recent call last): File "E:\pyxml_test\tst_service.py", line 5, in -toplevel- win32serviceutil.StartService('test_service') File "D:\Python24\Lib\site-packages\win32\lib\win32serviceutil.py", line 399, in StartService hs = SmartOpenService(hscm, serviceName, win32service.SERVICE_ALL_ACCESS) File "D:\Python24\Lib\site-packages\win32\lib\win32serviceutil.py", line 76, in SmartOpenService return win32service.OpenService(hscm, name, access) error: (1060, 'OpenService', '\xd6\xb8\xb6\xa8\xb5\xc4\xb7\xfe\xce\xf1\xb2\xa2\xce\xb4\xd2\xd4\xd2\xd1\xb0\xb2\xd7\xb0\xb5\xc4\xb7\xfe\xce\xf1\xb4\xe6\xd4\xda\xa1\xa3') -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20061116/0e384d88/attachment.html
2006年11月16日 星期四 16:26
On 11/16/06, ÍõÃ÷ <mingwang在iflytek.com> wrote: > > ±¨´í£º > > Traceback (most recent call last): > > File "E:\pyxml_test\tst_service.py", line 5, in -toplevel- > > win32serviceutil.StartService('test_service') > > File "D:\Python24\Lib\site-packages\win32\lib\win32serviceutil.py", line > 399, in StartService > > hs = SmartOpenService(hscm, serviceName, > win32service.SERVICE_ALL_ACCESS) > > File "D:\Python24\Lib\site-packages\win32\lib\win32serviceutil.py", line > 76, in SmartOpenService > > return win32service.OpenService(hscm, name, access) > > error: (1060, 'OpenService', > '\xd6\xb8\xb6\xa8\xb5\xc4\xb7\xfe\xce\xf1\xb2\xa2\xce\xb4\xd2\xd4\xd2\xd1\xb0\xb2\xd7\xb0\xb5\xc4\xb7\xfe\xce\xf1\xb4\xe6\xd4\xda\xa1\xa3') > > °Ñ±¨´íµÄÐÅÏ¢´ò³öÀ´¿´¿´²»¾ÍÖªµÀÁË£¿ >>> print '\xd6\xb8\xb6\xa8\xb5\xc4\xb7\xfe\xce\xf1\xb2\xa2\xce\xb4\xd2\xd4\xd2\ xd1\xb0\xb2\xd7\xb0\xb5\xc4\xb7\xfe\xce\xf1\xb4\xe6\xd4\xda\xa1\xa3' Ö¸¶¨µÄ·þÎñ²¢Î´ÒÔÒÑ°²×°µÄ·þÎñ´æÔÚ¡£ >>> -- Best Regards, Leo Jay -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20061116/8c56a0eb/attachment.html
2006年11月16日 星期四 16:37
On 11/16/06, ÍõÃ÷ <mingwang在iflytek.com> wrote: > > On 11/16/06, *nmweizi [nmweizi在163.com]* wrote: > > > > > ÔÚwin32serviceutil.pyÖÐÒѾ¶¨ÒåºÃÁË¡£ÈçÏÂÖ±½Óµ÷ÓÃwin32serviceutil.StartService¾Í¿ÉÒÔÁË£¬ > Ϊʲô»¹Òª×Ô¼ºÐ´£¿£¿£¿ > > > > ÎÒÊÇ»ÉßÌí×ãÁË£¬µ«»¹ÊÇÓÐÎÊÌ⣬ÊDz»ÊDZàÂëÎÊÌâ°¡£¬Ö¸µãһϣº > > > > error: (1060, 'OpenService', > '\xd6\xb8\xb6\xa8\xb5\xc4\xb7\xfe\xce\xf1\xb2\xa2\xce\xb4\xd2\xd4\xd2\xd1\xb0\xb2\xd7\xb0\xb5\xc4\xb7\xfe\xce\xf1\xb4\xe6\xd4\xda\xa1\xa3') > > >>> s = \xd6\xb8\xb6\xa8\xb5\xc4\xb7\xfe\xce\xf1\xb2\xa2\xce\xb4 \xd2\xd4\xd2\xd1\xb0\xb2\xd7\xb0\xb5\xc4\xb7\xfe\xce\xf1 \xb4\xe6\xd4\xda\xa1\xa3' >>> print s.decode('gbk') Ö¸¶¨µÄ·þÎñ²¢Î´ÒÔÒÑ°²×°µÄ·þÎñ´æÔÚ ·þÎñ²»´æÔÚ, ¿´¿´ÊDz»ÊÇÃû×Ö´íÁË, ÔÚWindowsµÄ²Ù×÷½çÃæ»òÕßÓÃnet start/stop ²âÊÔÈ·ÈϺóÔÙÀ´µ÷python´úÂë ²»ÒªÐļ±, ¿´Çå³þÏëÇå³þÔÙ¶¯ÊÖ -- simple is good http://brucewang.net skype: number5 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20061116/327d2e1a/attachment.htm
Zeuux © 2025
京ICP备05028076号