return subprocess.Popen([command] + args, startupinfo=startupinfo).wait()
if __name__ == '__main__':
    launchWithoutConsole('d:\\bin\\gzip.exe', ['-d', 'myfile.gz'])
How do I eliminate Windows consoles from spawned processes in Python (2.7)?