Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = 'C:\Exe\First Version\filename.exe'
- os.system(file)
- file = 'C:\Exe\First Version\filename.exe'
- os.system('"' + file + '"')
- import subprocess
- file = 'C:\Exe\First Version\filename.exe'
- subprocess.call([file])
- file = '"C:\Exe\First Version\filename.exe"'
- os.system(file)
- file = 'C:\Exe\FirstV~1\filename.exe'
- os.system(file)
- 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))
Add Comment
Please, Sign In to add comment