I have a Python script which collects some data and sends it over to a database. Using py2exe and Inno Setup, I have been able to create an .exe for distribution and also put the program run automatically when the computer (WINDOWS) starts; but the issue is that the command prompt window shows on the screen and on the taskbar. I don't have anything to show in the command prompt window so how can I make it run in the background without it being shown in the taskbar??
Please help!!! It is also OK if it shows up only as a tray icon.
Try to rename your script file to
*.pyw
format. It able to execute your script in background mode without command prompt. That format available from v1.5: