Run Python app at startup

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Mar 4 22:18:09 EST 2008


En Tue, 04 Mar 2008 16:36:03 -0200, SMALLp <pofuk at email.t-com.hr> escribió:

>>> I create simple application. Yust an windows and "compile" it with
>>> py2exe. I add registry  value
>>> reg add
>>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v
>>> MyApp /t REG_SZ /d C:\myapp.exe /f'

> Program works fine. When i run it it works. Problem is how to make this
> aplication start at windows startup. It opens and it closes in my case.

Redirect stdout and stderr to some log file so you can inspect it and see  
the error:

cmd /c c:\path\myapp.exe >c:\path\output.log 2>&1

-- 
Gabriel Genellina




More information about the Python-list mailing list