Create one-click shutdown, restart, standby, and lock screen buttons

You can improve your productivity by adding shutdown, restart, standby, and lock screen buttons to your quick launch toolbar. These buttons are quick to make. You need to copy the following commands into separate files in notepad and give each file a .bat extension (for the lazy, I will include the files at the end of the post and you can save them instead of creating them yourself).
After you create the .bat files you can drag them into your quick launch toolbar. Once in the quick launch toolbar, right-click each icon and choose properties. Once in properties, choose “Change Icon…” and assign a new icon to your shortcuts (as shown above).
Shutdown: shutdown.exe -s -t 0
Restart: shutdown.exe -r -t 0
Standby: rundll32.exe PowrProf.dll, SetSuspendState Standby
Lock Screen: rundll32.exe user32.dll, LockWorkStation
Note: The “0″ above is a zero.
Download Links:
Shutdown.bat
Restart.bat
Standby.bat
Lock Screen.bat
Note: You may need to right-click and “Save Link As…” to download the links above.
Read more: Software, Windows, Productivity

mohammadsafi wrote:
kindly let me know how to put tab key in a bat file…I have a windows popup coming and asking for a password…now i want to make the process automated for that i want three tab’s to be put in and then the password and then the encrypt button…kindly help me out…urgently…
Posted 02 Aug 2007 at 3:33 am ¶
Craig wrote:
mohammadsafi, That’s not something you can do with a BAT file alone. You need AutoHotkey, or some other general-purpose macro tool.
Posted 02 Aug 2007 at 3:12 pm ¶
Greg wrote:
Hi, the standby doesn’t seem to work
Posted 08 Feb 2010 at 9:53 am ¶
JohnCena wrote:
Gerg!
1. run powercfg.cpl
2. disable your hibernation
3. then run standby.bat
i hope, it will succeed.
Posted 26 Feb 2010 at 8:47 am ¶