how to execute .exe file ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • quiteblack@gmail.com

    #1

    how to execute .exe file ?

    hi all~

    i used to drive .exe file working by writing a simple batch file, i
    thin python may do this as well bu i dunno how to, any help ?

  • Larry Bates

    #2
    Re: how to execute .exe file ?

    There are several ways. The easiest is to use
    os.system('prog ram.exe')

    If you require more control on the output, etc.
    take a look at popen and the new subprocess modules.

    A more complex method that is mostly for Windows GUI applications
    and allows finer grain control over window size, environment, etc.
    is the win32process.Cr eateProcess module which is part of the
    win32 extensions by Mark Hammond. This requires a bit more work,
    but gives you control over almost every aspect of a Windows GUI
    application window at startup.

    -Larry Bates

    quiteblack@gmai l.com wrote:[color=blue]
    > hi all~
    >
    > i used to drive .exe file working by writing a simple batch file, i
    > thin python may do this as well bu i dunno how to, any help ?
    >[/color]

    Comment

    • black

      #3
      Re: how to execute .exe file ?

      tks !!!

      Comment

      Working...