Instead of this:
process = Popen([r"C:\Users\PC\Downloads\TCPView\Tcpview.exe"], stdout=PIPE)
Try this:
process = Popen([r"C:\Users\PC\Downloads\TCPView\Tcpview.exe"], stdout=PIPE, shell=True)
Namely, set the shell
parameter to True
.
CLICK HERE to find out more related problems solutions.