The following doesn\'t work, because it doesn\'t wait until the process is finished:
import subprocess p = subprocess.Popen(\'start /WAIT /B MOZILL~1.LNK\',
Note: I am simply adding on Jim's reply, with a small trick. What about using 'WAIT' option for start?
p = subprocess.Popen('start /B MOZILL~1.LNK /WAIT', shell=True) p.wait()
This should work.