I call the subprocess as follows:
command = 'c:\somepath\myexe.exe' startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW p = subprocess.Popen(command, shell=False, startupinfo=startupinfo)
It appears that instead of running myexe.exe directly, it goes through cmd.exe. Can I avoid cmd.exe here?
python windows subprocess
pbx
source share