Question

Could someone explain to me how can I run my py2exe program, a console program, without the terminal on Windows?

I'm trying to make a program that re-sizes windows and it supposed to start with windows, so I want it hide out but still running...

Was it helpful?

Solution

Use the setup() function like this:

setup(windows=['myfile.py'])

See the list of options for setup().

OTHER TIPS

Not really understand your requirement, but you can try start /MIN. type start /? on the command line to see its help page.

Would you consider compiling it into an EXE (using py2exe or some such) and adding it to your list of startup programs?

Sounds like what you want is for your script to run as a Windows Service instead of a Windows program. Something like this tutorial might be helpful:

http://islascruz.org/html/index.php?gadget=StaticPage&action=Page&id=6

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top