import os
from subprocess import Popen, PIPE res = os.popen('xx.exe E:\\test\\file1 E:\\test\\file2')
print res.read() ps = Popen("xx.exe E:\\test\\file1 E:\\test\\file2", shell = True, stdout = PIPE, stderr = PIPE)
res = ps.stdout.read()
print res
2024-04-11 17:23:43
import os
from subprocess import Popen, PIPE res = os.popen('xx.exe E:\\test\\file1 E:\\test\\file2')
print res.read() ps = Popen("xx.exe E:\\test\\file1 E:\\test\\file2", shell = True, stdout = PIPE, stderr = PIPE)
res = ps.stdout.read()
print res