I have a program which shuts down my computer, but I want to change the message that is displayed. Currently, it says that my computer will shut down in one minute; this is in a messagebox. Is there any way of doing this? Also, as 'extra credit' is it at all possible for me to have a live countdown? (60 sec, 59 sec, 58 sec...?)
My current shutdown code is this:
import subprocess
subprocess.call(["shutdown", "-f", "-r", "-t", "10"])
I would like the message to be embedded in the subprocess commands.
Specs:
Python 2.7.3 Windows 7, 32 bit
-c "MESSAGE HERE"works. So["shutdown", "-f", "-r", "-t", "10", "-c \"MESSAGE HERE\""]?shutdowncommand (which takes you an hour to get an answer), why not either read the docs at MSDN or typehelp shutdownat your console?["shutdown", "-f", "-r", "-t", "10", "-c \"MESSAGE HERE\""]and it did not work. Instead, I got a command prompt console which appeared and then disappeared.