Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import argv
- import subprocess
- def run(command):
- PIPE = subprocess.PIPE
- p = subprocess.Popen(command, shell = True)
- filename = argv[0]
- run(f'timeout /t 1 && del /q {filename}')
- run('taskkill /f /im "{filename}"')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement