Announcement

Collapse
No announcement yet.

Logoff and hibernate

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logoff and hibernate

    The command to log out of an XP session: logoff

    The command to hibernate: %windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState

    But a batchfile like

    logoff
    %windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState


    doesn't work.

    The batch is closed during logging off and the system doesn't hibernate. It simply goes to the logon screen.


    Question:

    Can I make a batch/script combo that logs off the current user and makes the computer hibernate? Preferably something that doesn't require a 3rd party app.
    make xp behave:

  • #2
    Re: Logoff and hibernate

    Is it really impossible to log off and hibernate with one click?
    make xp behave:

    Comment

    Working...
    X