1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

windows doesn't shutdown pc /I get it is safe to shut off computer screen...Help

Discussion in 'Legacy Windows' started by ddosh, 2003/08/14.

Thread Status:
Not open for further replies.
  1. 2003/08/14
    ddosh

    ddosh Inactive Thread Starter

    Joined:
    2003/08/13
    Messages:
    1
    Likes Received:
    0
    When I click shutdown on the start menu windows successfully shuts down, but windows will not shutdown the P.C. It is a sony vaio with phenox bios and a p2 processer if that matters. I can shutdown manually but I would like windows to shutdown P.C. for me. Please Help!!!
     
  2. 2003/08/15
    merlin

    merlin Inactive

    Joined:
    2003/01/07
    Messages:
    1,111
    Likes Received:
    0
    "It is now safe to shut down your computer" is an invitation to
    press the power button on the box to shut off the PC.
    If you want Win98SE to power-off when you shutdown, I recommend you search for a free app called Exits95.
    regards
     

  3. to hide this advert.

  4. 2003/08/15
    sunny

    sunny Inactive

    Joined:
    2003/05/16
    Messages:
    139
    Likes Received:
    0
  5. 2003/08/15
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
    You can create desktop shortcuts to shutdown Windows, or restart Windows, with a single click. You can put these shortcuts anyplace you like "” on the desktop itself, the Quick Launch bar, your Start Menu "” wherever.

    To make a new shortcut, right-click on an empty part of the desktop (or inside a folder). Select New, then Shortcut. A "wizard" will pop up to guide you through the rest of the process. You will have to provide a command line, and then a name. The name can be anything you want.

    For Windows 9x, there are two sets of commands you can use to accomplish these tasks: The Short Version, and the Long Version. Both are given below. (Only the Short Version works in Win95.)

    The Short Version (Win 9x)

    The shortcut command line should be as follows:

    For a shortcut to RESTART Windows:
    C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec

    For a shortcut to SHUT DOWN Windows:
    C:\WINDOWS\RUNDLL32.EXE user,exitwindows


    The Long Version (Win 98/ME)
    Tip from Bill Blanton & MS-MVP George Aker. See also MSKB 234216.

    The command line should be as follows:

    C:\WINDOWS\RUNDLL32 SHELL32.DLL,SHExitWindowsEx n

    Where n is one of the following values, depending on the task you want to accomplish:

    n=0 LOGOFF: Shuts down all running processes, logs the user off, then restarts the Windows shell. (Same as Logoff on the Start Menu.)
    n=1 SHUTDOWN: Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.
    n=2 REBOOT: Shuts down the system, then restarts it. (Same as Start Menu | Shutdown | Restart.)
    n=4 FORCE: Forces all processes to terminate "” in effect, shuts down all running programs. When this flag is set, Windows does not query running applications to inform them that Windows is shutting down. This can cause the applications to lose data, therefore, you should only use this flag in an emergency.
    n=8 POWEROFF: Exits Windows, then turns off the computer’s power (provided the computer supports the power-off feature).
    n=-1 RESTART EXPLORER: Quickly closes Explorer (i.e., the Windows desktop), then lets it restore itself.

    These values are additive, in the event you want to do two of them at once. There are varying reports of success with some of these options. For example, inconsistent behavior reported with option 8 may indicate a different behavior with the powerdown system on a particular computer. The solution for this usually is to request both a shutdown and a poweroff by using n=9 (adding the 1 and 8). (Tip from MS-MVP Tom Porterfield.)

    This command can also be called from the RunOnce registry entry (which means these could be written into Registry files as one means of execution).

    Additionally, there is a command (which can be run from a shortcut, batch file, or command prompt) runonce.exe -q, which restarts the computer after a 15 second delay. There are no other options when using this command line, and it cannot be called from the RunOnce registry key.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.