[python-win32] Starting a .exe py2exe program in background mode.

Johri, Mayank (GTI) mayank_johri at ml.com
Fri Jan 4 19:53:42 CET 2008


This will help you  http://www.velocityreviews.com/forums/t324326-re-py2exe-question.html
 
 

Thanks and Regards,

Mayank Johri
Merrill Lynch & Co.
Ph: 212.647.3076

	-----Original Message-----
	From: python-win32-bounces at python.org [mailto:python-win32-bounces at python.org] On Behalf Of João Abrantes
	Sent: Friday, January 04, 2008 1:44 PM
	To: python-win32 at python.org
	Subject: [python-win32] Starting a .exe py2exe program in background mode.
	
	
	Hello everyone.
	I have made a python program and converted into an executable using py2exe. Now I want him to start on windows startup without showing the DOS Window... I have registered the program on windows startup registry key:
	
	    key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0, _winreg.KEY_ALL_ACCESS)
	    _winreg.SetValueEx(key, "My program",0, _winreg.REG_SZ, '"C:\\jpia\\Programs\\Myprogram.exe" /background')
	
	as you see I added the option "/background" but the DOS window still appears... well I hope you can help me. Thanks.
	

  _____  

	Express yourself instantly with MSN Messenger! MSN Messenger <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080104/9fb3999a/attachment.htm 


More information about the python-win32 mailing list