Take That Spammers!! Friday Grooves: Fatboy Slim’s Better Living Through Chemistry

Windows Tip: Log Off Your Computer With A Shortcut

Written by Saman Sadeghi on February 22, 2007 Add comments

Lets learn how to log off of your machine with a simple double-click of a button!

Why?!

I know that the Log Off button is tucked neatly inside the Start menu, but we can place shortcut on the desktop or even in the Quick Launch toolbar! Also, I like editing/hacking/customizing stuff!

How To

This trick is very similar to shutting down your computer with a batch file, we just need to change the switch that we pass! More information on the shutdown command and it’s switches.


First, create a batch file with the following commands:

cd\
shutdown -l -f

The “-l” switch tells the computer to log off and the “-f” switch closes all running applications - that’s all you need!

Save the file. I prefer to save my batch files in the Programs Files folder in the c:\ drive. They are program after all!

How To Add An Icon

  1. Right-click the batch file and click “Create Shortcut
  2. Right-click the shortcut and click properties
  3. Under the “Shortcut” tab, click “Change Icon . . .” This will pop-up the following error:
    Oh No!
  4. After clicking “OK”, a dialog should open displaying all of the icons in the location:
    %SystemRoot%\system32\SHELL32.dll
  5. Find one that you like and click “OK”
    All Done!
  6. You could get nutty and place this shortcut in your Quick Launch folder by typing Windows Key+R, then:
    "C:\Documents and Settings\%username%\Application Data\Microsoft\Internet Explorer\Quick Launch"
    Nice!!!

Start Slide Show with PicLens Lite PicLens
This post is filed in: Command Prompt, Windows Tips And Tricks and has been viewed 5,052 views times.

Take That Spammers!! Friday Grooves: Fatboy Slim’s Better Living Through Chemistry

MMMMM... Related Posts


Homer
  • Windows Tip: Lock Workstation
  • Windows Hacks: Improve The Context Menu, Part 1
  • Windows Tip: Put Some Space In Your Start Menu
  • Windows Key + R
  • Windows Key + F


  • RSS feed | Trackback URI

    3 Comments »

    Pingback by Hack your own PC! » Nice4Rice.com 2007-03-15 10:48:51

    MyAvatars 0.2

    [...] first little hack I thought would be fun was to create a Windows shortcut so you could log off with a double-click instead of opening the Start menu. I mean, really, who wouldn’t want to save a few tenths of [...]

     
    Comment by Erik Andersen 2007-12-11 17:51:07

    MyAvatars 0.2

    Would there be a way to switch user (not log off)? I would like to be able to set up a command line to run at a certain time. That way I could limit computer time.

     
    Comment by mohit pant 2008-05-12 02:17:26

    MyAvatars 0.2

    this is such a good fun….. i am able to shutdown my computer by only double click on a short cut….

    i m really thanks full to..samanathon.com

     

    Leave a Reply

    Name (required)
    E-mail (required - never shown publicly)
    URI
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
    Take That Spammers!! Friday Grooves: Fatboy Slim’s Better Living Through Chemistry