>>>>> 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.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 <[EMAIL PROTECTED]>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to