I want to run/call an existing bat file in Python Spyder.
I tried the following two codes. Both start the command window but then it quickly quits/exits. I would highly appreciate your help.
Option 1)
Import os
os.system("path....\\xxx.bat")
Option 2)
Import subprocess
subprocess.call ("path....\\xxx.bat")