[python-chinese] (Rising Spam Alert) 如何编写一个windows后台程序(不是服务程序)

Chao Xiong chaox.maillist在gmail.com
星期一 九月 11 12:59:36 HKT 2006


或许你可以用pyinstaller打包试试,加一个参数,就可以在后台运行,不会有cmd窗口出现。

在06-9-9,zc <cn-poper at 126.com> 写道:
>
>   win32process.CreateProcess(None, pg_name, None , None , 0 ,
> win32process.NORMAL_PRIORITY_CLASS  , None , None ,
> win32process.STARTUPINFO())
>  的NORMAL_PRIORITY_CLASS参数已经添加了,就是隐藏窗口。
> 使用CREATE_NO_WINDOW参数也没用有,还是有窗口/
>
>
> ----- Original Message -----
> *From:* zc <cn-poper at 126.com>
> *To:* python-chinese at lists.python.cn
> *Sent:* Friday, September 08, 2006 3:19 PM
> *Subject:* (Rising Spam Alert)[python-chinese] 如何编写一个windows后台程序(不是服务程序)
>
>
> 我想写一个程序在后台每隔一小时执行一个bat脚本。
> 不显示窗口也不是作为服务运行,这么写?
> os.system("z:/auto.bat")
> 要显示窗口。
>
> ------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20060911/228845b4/attachment.html 


关于邮件列表 python-chinese 的更多信息