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

João Abrantes jepe_abrantes at hotmail.com
Fri Jan 4 19:43:40 CET 2008


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! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080104/661b2ce5/attachment.htm 


More information about the python-win32 mailing list