So i wanted to capture a whole directory with Subprocess.Popen
so i used Stdout=subprocess.PIPE
.
However when i try to print the directory (which had a lot of files), only half of them showed up.
So what i did was:
import subprocess
data = subprocess.Popen(["dir","C:\\etc\\etc\\etc"],shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE)
data = (data.communicate()[0]).decode(encoding='cp1250')
print(data)
And about the half of the files and directories where shown, and like i said maybe it was because of the big amount of files in the folder.