Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # run_executable.py
- import subprocess
- import sys
- path = 'c:\\Windows\\system32\\'
- # start program
- file = 'calc.exe'
- process = subprocess.Popen(path+file, stdout=subprocess.PIPE, creationflags=0x08000000)
- process.wait()
- ### subprocess.call([path+file.encode(sys.getfilesystemencoding())])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement