I have a Python script that needs to execute an external program, but for some reason fails.
If I have the following script:
import os; os.system(\"C
For Python 3.7, use subprocess.call. Use raw string to simplify the Windows paths:
import subprocess subprocess.call([r'C:\Temp\Example\Notepad.exe', 'C:\test.txt'])