Friday, 12 April 2013
How to create shortcut for shutdown, Restart and Logoff or Single click shutdown restart andlogoff in Windows XP, Vista and Seven
This process is done by creating or by hacking a BAT file.
For this open notepad and type:-
shutdown -s -c "Shutting down!" -t 3
It tells your computer to shutdown after waiting for 3 seconds while the System Shutdown Window will display text "Shutting down!" above in the Message area.
If you want to change the system shutdown delay time just changes 3 to another number. System will take that Number as delay time in seconds.
If you want to display your name before shutdown then change"Shutting down!" to your name including quote (e.g. shutdown -s -c"MIHIRBABU" -t 3. It will display MIHIRBABU before shutdown)
If you want logoff or restart instead ofshutdown then just replace “-s” with “-l” or “-r”.
-l = Log off the current user.
-r = Shut down and restart (reboot) the computer.
-s = Shut down the computer.
Save this notepad file with any name with extension .bat (suppose “xxx.bat”) any where in your computer.
After saving this when anyone double click or run or execute this “xxx.bat” file computer will execute this BAT fileand follow the user’s command.
In some cases when we logged in as alocal user instead of Administrator, then ; when we double click the bat file system is not shutdown. Then right click of mouse on that file and click on "Run as administrator"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.