In my project I am starting a .bat file from a python script. Just like this:
os.system("testfile.bat")
When this `testfile.bat is finished it ends with the prompt Press any key to continue .... I would like my python script to surpass this prompt and somehow simulate the keypress.
How can I achieve that? I already implemented this functionality by using a subprocess but as it turned out a subprocess is not suited for the context of my project (has something to do with printing to the console). Any ideas?
pauseat the end? – Rushy Panchal Sep 12 '13 at 13:21pausegives the "Press any key to continue ..." prompt. Just remove thepausefrom the batch file. – Rushy Panchal Sep 12 '13 at 13:27