starting programs from python script on windows
Piet van Oostrum
piet at cs.uu.nl
Wed Jan 30 03:00:13 EST 2008
>>>>> Benedict Verheyen <benedict.verheyen at gmail.com> (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.sleep(1)
>BV> try:
>BV> p1 = Popen(["C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"],
Use raw strings or escape the \'s.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list