I want to excute a program multiple times in a loop with diffrenet argument eveytime, but avoid opening new coonsole window everytime.
I tried os.system()
, Popen
but no success.
example for what I tried:
from subprocess import Popen, PIPE
for i in range(10):
process = Popen("myProgram.exe i", shell=False,stdin=PIPE,stdout=PIPE,stderr=PIPE)
also tried using &
;
pause