Log Off Button

Discussion in 'Windows Desktop Systems' started by Bman, Jul 15, 2002.

  1. Bman

    Bman OSNN Veteran Original

    Messages:
    8,799
    Location:
    Ottawa, Ontario
    I was wondering if anybody knew how to put the logoff button as an icon on the desktop??

    If possible ???
     
  2. Bman

    Bman OSNN Veteran Original

    Messages:
    8,799
    Location:
    Ottawa, Ontario
    Help PLease, somebody, your all smart, is this possible???
     
  3. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    create a shortcut pointing to: "shutdown.exe -l -t 00" (that is a l as in Leo). The -l command is for logging off, and the -t 00 command is a timer which is set to 00 seconds, if set to 10 then it takes 10 seconds to logoff etc.
     
  4. Isn't that for UNIX based operating systems?...oh hang on i just found a windows equvilent. Hey i didn't know you get that. Yeah that should work.

    I have a shorcut pointing to :

    %windir%\System32\rundll32.exe user32.dll,LockWorkStation

    That should do the same thing.
     
  5. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Yep, but also for Windows.

    Uhm, no, the shutdown shortcut I gave is to completely logoff the computer. Your shortcut only locks the workstation without actually logging off.
     
  6. it's too hot to think. Cheers for pointing that out!

    There possibly might be a function in the same dll that logs the machine off. But i'm not sure.
     
  7. Bman

    Bman OSNN Veteran Original

    Messages:
    8,799
    Location:
    Ottawa, Ontario
    so add a chortcut and type in shutdown.exe -l -t 00
     
  8. Bman

    Bman OSNN Veteran Original

    Messages:
    8,799
    Location:
    Ottawa, Ontario
    thanks got the icon i wanted!!
     
  9. vdubVR6

    vdubVR6 Guest

    i just tried this and the "%windir%\System32\rundll32.exe user32.dll,LockWorkStation" works for me at work, (win2kOS)great for when i leave the desk = ) but does anyone know how to shutdown too, would i just put Shutdown instead of Lockworkstation any help would be appreciated thx
     
  10. vdubVR6

    vdubVR6 Guest

    of course it would have to be compatiable for win2k i only have xp @ home. thx guys/gals:D
     
  11. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Here's the shortcut for Windows 9x, dunno if it works for win 2k.
    "%windir%\system32\rundll32.exe user32.dll,exitwindows" for shutting down the computer and:
    "%windir%\system32\rundll32.exe user32.dll,exitwindowsexec" for restarting the computer.

    In Windows XP it would be:
    "shutdown.exe -s -t 00" for shutting down and:
    "shutdown.exe -r -t 00" for restarting the computer.
     
  12. vdubVR6

    vdubVR6 Guest

    hmm so far so good,.... ill let you know if it works in a min.
     
  13. vdubVR6

    vdubVR6 Guest

    :( nope o';well guess im just gonna have to wait an extra 5 min. shut'in down till i leave at night, thx anyways glaanieboy, but if this might help then the error message i get is "X Error in user32.dll Missing entry:exitwindows"
     
  14. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    are you giving the command in Win2K or Win XP?
     
  15. vdubVR6

    vdubVR6 Guest

    @ work so im using 2k,
     
  16. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Then I can't help you, sorry. Perhaps if you do a search on the forum or in the M$ knowledge base there will be an answer.
    Good luck!
     
  17. vdubVR6

    vdubVR6 Guest

    :D will do,......thx for your help!!!