Command Line Error
Posted: Wed Jan 14, 2026 4:23 am
I am trying to run a python script via the execute command element to unlock a pdf.
I set my command to location of my python.exe: C:/Users/switch/AppData/Local/Programs/Python/Python313/python.exe
I set my arguments to the directory where my program is "...UnsecurePDF.py" --input "%1" --output "%2"
The job fails with Job failed because outcode is nonzero, outcode = [1] and when I check the Log files the error is the following:
'/c' is not recognized as an internal or external command, operable program or batch file.
This runs correctly when I run it from the CMD prompt but I cannot get it to run within Switch.
Thanks in advance.
I set my command to location of my python.exe: C:/Users/switch/AppData/Local/Programs/Python/Python313/python.exe
I set my arguments to the directory where my program is "...UnsecurePDF.py" --input "%1" --output "%2"
The job fails with Job failed because outcode is nonzero, outcode = [1] and when I check the Log files the error is the following:
'/c' is not recognized as an internal or external command, operable program or batch file.
This runs correctly when I run it from the CMD prompt but I cannot get it to run within Switch.
Thanks in advance.