Certutil "Too Many Arguments" error when using python os.system command window

1.2k Views Asked by At

Trying to decode a simple file into a temporary text file using the code below:

os.system("start cmd /k certutil -f -decode \\SDHQFILE03.enxco.com\\arcgis\\General\\Solar\\R_and_D\\CodeLibrary\\Python\\EPE2.1.7\\34287.bat \\SDHQFILE03.enxco.com\\arcgis\\General\\Solar\\R_and_D\\CodeLibrary\\Python\\SETI\test3.txt")

Everytime I run this I get an error from certutil that I have too many arguments (3 with 2 expected) - copying the code directly into the command window as shown it runs correctly:

certutil -f -decode \\SDHQFILE03.enxco.com\\arcgis\\General\\Solar\\R_and_D\\CodeLibrary\\Python\\EPE2.1.7\\34287.bat \\SDHQFILE03.enxco.com\\arcgis\\General\\Solar\\R_and_D\\CodeLibrary\\Python\\SETI\test3.txt

What am I missing on the first statement to allow it to run without error?

0

There are 0 best solutions below