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

Quicklaunch image
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.

Comments

  1. 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…

  2. mohammadsafi, That’s not something you can do with a BAT file alone. You need AutoHotkey, or some other general-purpose macro tool.

  3. Hi, the standby doesn’t seem to work

  4. Gerg!
    1. run powercfg.cpl
    2. disable your hibernation
    3. then run standby.bat
    i hope, it will succeed.

Post a Comment


Your email is never published nor shared. Required fields are marked *



© 2006-2007 Maxim Software Corp.  All rights reserved.