Categories
How to send a message to the mail when the PC is turned off?
I need to send a message to the mail when the PC is turned off. I know how to send a message, but I don’t know how to track a PC shutdown
Answer the question
In order to leave comments, you need to log in
import atexit def exit_handler(): print("Do something on shutdown") atexit.register(exit_handler)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question