We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca7c491 + 021570a commit 4f90cabCopy full SHA for 4f90cab
Projects/Auto_shutdown/shutdown.py
@@ -0,0 +1,18 @@
1
+import os
2
+import time
3
+
4
5
+def shutdown():
6
+ os.system("shutdown /s /t 1")
7
8
+set_time = input("Shutdown After ----> ")
9
+set_time = int(set_time)
10
11
+sec = 60
12
13
+print('Computer Will Now Shutdown in ' + str(set_time) + ' Minutes')
14
+time.sleep(set_time*sec)
15
+print('\n')
16
+print('Computer Will Now Shutdown!')
17
+time.sleep(3)
18
+shutdown()
0 commit comments