how to shutdown a computer with python
import os
os.system("shutdown /s /t 1")
how to shutdown a computer with python
import os
os.system("shutdown /s /t 1")
shutdown/restart windows with python
# This is for a windows operating system
# We will use the os library
import os
# os.system is basically running a cmd command
os.system("shutdown /s") #shutdown
os.system("shutdown /r") #restart
os.system("shutdown /l") #logoff
os.system("shutdown /h") #hibernate
#for a full list of commands, go into Command Prompt and type "shutdown"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us