How use subprocess.run with cmd external program in phython

38 Views Asked by At

I need to use this cmd command:

"C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" verify /pa "C:\Program Files (x86)\myprogram\bin\aaa.exe"

in subprocess.run with python. I try:

subprocess.run("cmd", "/c","C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe"verify /pa "C:\Program Files (x86)\myprogram\bin\aaa.exe")

but not work. What is the correct form for this command to work?

0

There are 0 best solutions below