views:

206

answers:

4

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...

+1  A: 

Use the setup() function like this:

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

See the list of options for setup().

Otto Allmendinger
but I'll transform it to .exe...
Shady
how do you transform it?
Otto Allmendinger
py2exe and some script
Shady
A: 

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

ghostdog74
I want my program running in background, or, showing the process only on ALT TAB DEL
Shady
A: 

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

inspectorG4dget
A: 

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

bdk