#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    27
    Rep Power
    0

    Question 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?

    Thanks...

    DevHims
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    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
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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.

    http://starship.python.net/crew/mhammond/

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo