Answers for "os system to invoke an exe which lies in a dir"

0

os system to invoke an exe which lies in a dir

import subprocess, shlex
mycmd='"C:\\Program Files\\7-Zip\\7z" x "D:\\my archive.7z" -o"D:\\extract folder" -aou'
subprocess.run(shlex.split(mycmd))
Posted by: Guest on November-09-2020

Browse Popular Code Answers by Language