mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 14:01:12 +00:00
18 lines
321 B
Python
18 lines
321 B
Python
import os
|
|
import time
|
|
|
|
def shutdown():
|
|
os.system("shutdown /s /t 1")
|
|
|
|
set_time = input("Shutdown After ----> ")
|
|
set_time = int(set_time)
|
|
|
|
sec = 60
|
|
|
|
print('Computer Will Now Shutdown in ' + str(set_time) + ' Minutes')
|
|
time.sleep(set_time*sec)
|
|
print('\n')
|
|
print('Computer Will Now Shutdown!')
|
|
time.sleep(3)
|
|
shutdown()
|