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

Larry Bates larry.bates at websafe.com
Tue Jan 15 00:57:08 CET 2008


João Abrantes wrote:
> 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/>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32

Compile with py2exe using windows NOT console.

-Larry



More information about the python-win32 mailing list