I would like to open a windows application by using python subprocess
, I can open the application in shell by command: start "C:\Windows\notepad.exe"
, however when I try to use subprocess
it gives FileNotFoundError
, I tired:
subprocess.run(['start', '"C:\\Windows\\notepad.exe"'])
subprocess.run(['start', "C:\\Windows\\notepad.exe"])
subprocess.run(['start', "C:\Windows\notepad.exe"])
Thanks in advance.