July 13th, 2004, 08:59 AM
How to minimize opened .exe program on windows using python?
Hii to Everyone,,
by any chance anybody know how to minimize opened .exe file or run it in background.? So, end-use want know from where it is running.
I am trying to run python script on windows through other application and when it runs , DOS window shows up!! I want to minimze it or hide it.
is there a way to do this?
July 15th, 2004, 04:31 PM
Do you mean you want to get rid of the DOS box? Then all you have to do is to give the python file an extension of .pyw, and it will open it in Windows mode without displaying the DOS box at all.
This does mean however that any output from the program will be lost, including error messages and exception tracebacks.
Dave - The Developers' Coach
July 16th, 2004, 02:06 AM
It sounds as if this is carrying on from his question about waiting for an exe to finish. So, you want to tell windows to minamize the exe while you're waiting for it?
You might want to check out Mark Hammonds Win32all extensions.