Saturday, January 26, 2013

Display a Message containing the reason for shutdown


How funny it will be when the system is put to shutdown suddenly saying “I worked for a long time. I need rest”. In general it won’t happen. But you can make it happen to surprise your friend.
No need to learn or master any coding languages. You can do it simply with the command prompt.
Most of us are unaware of the command prompt techniques. But once you know the techniques you can have a lot fun.
So, to the above mentioned trick here is the procedure. Try and have fun……

Type shutdown -s  -t 500 -c "I worked for a long time. I need rest." (With the quotes) in the Command
Prompt and press Enter. The -c switch is used in the code to give the reason for shutting down and what is followed in quotes will be displayed in the dialog box as the reason. This can be used to display all sorts of funny messages.

No comments: