DETACHED_PROCESS = 0x00000008 proc = subprocess.Popen( parameter, stdout=subprocess.PIPE, creationflags=DETACHED_PROCESS )