Jan-20-2022, 03:33 PM
Hi
I am trying to call an exe on a network drive
What am I doing wrong?
I am trying to call an exe on a network drive
d = "x:\\\RequirmentsEditorInstall.exe" subprocess.run([d, '/silent', ])When this runs I get the following
Traceback (most recent call last): File "C:\Azure Devops\Agents\TPG\_work\_temp\6f42d270-a33f-46f5-adb5-9ac9afd9a6c0.py", line 22, in <module> subprocess.run([d, File "C:\Program Files\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "C:\Program Files\Python310\lib\subprocess.py", line 966, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python310\lib\subprocess.py", line 1435, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified ##[error]The process 'C:\Program Files\Python310\pythonw.exe' failed with exit code 1 Finishing: Produce Requirements Editor ReportsIf I execute the command manually it succeeds
What am I doing wrong?