Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # remote shutdown using online file sync servies (OneDrive, Dropbox, etc..)
- import os
- import time
- file_name = "1 1 1 1 1 1.txt"
- open(file_name, 'w').close()
- print("File created")
- while os.path.isfile(file_name):
- time.sleep(1)
- print("File deleted, computer will shut down after 5 seconds")
- time.sleep(5)
- os.system("shutdown -s -f -t 0")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement