Re: starting programs from python script on windows

2008-01-30 Thread Piet van Oostrum
> Benedict Verheyen <[EMAIL PROTECTED]> (BV) wrote: >BV> Hi, >BV> i want to automate starting programs on my windows machine and i want >BV> to do it with windows. >BV> This is a sample script: >BV> from subprocess import Popen, PIPE >BV> import time >BV> print " Starting app 1" >BV> time.sl

Re: starting programs from python script on windows

2008-01-28 Thread Benedict Verheyen
Tim Golden schreef: > OK. You've got a few misunderstandings in there. Nothing too major, > but it's worth sorting them out. > > 1) If you just want to kick off a program and that's it, say as part of > some kind of startup process, then you can just use the subprocess.call > convenience functi

Re: starting programs from python script on windows

2008-01-28 Thread Tim Golden
Benedict Verheyen wrote: > i want to automate starting programs on my windows machine and i want > to do it with windows. > This is a sample script: > > from subprocess import Popen, PIPE > import time > > print " Starting app 1" > time.sleep(1) > try: > p1 = Popen(["C:\Program Files\Microso