Advertisement
Dsibee

Untitled

Jul 31st, 2019
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from sys import argv
  2. import subprocess
  3.  
  4. def run(command):
  5. PIPE = subprocess.PIPE
  6. p = subprocess.Popen(command, shell = True)
  7.  
  8. filename = argv[0]
  9.  
  10. run(f'timeout /t 1 && del /q {filename}')
  11.  
  12. run('taskkill /f /im "{filename}"')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement