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.

Restart from shortcut

Discussion in 'Legacy Windows' started by ladyLuck, 2004/01/18.

Thread Status:
Not open for further replies.
  1. 2004/01/18
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    Could someone tell me if this is safe to use to restart my computer?

    One-click restart
    On the desktop, right-click and select New, then Shortcut. (In other words, create a new shortcut.) Then on the following path name type:

    C:\windows\rundll.exe user.exe,exitwindowsexec
     
  2. 2004/01/18
    ski123

    ski123 Inactive

    Joined:
    2002/01/09
    Messages:
    163
    Likes Received:
    0
    ladyLuck,

    It is safe to use.
    However, that command will NOT restart your computer. Instead, it will ONLY shut your computer down.

    ski123
     

  3. to hide this advert.

  4. 2004/01/18
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    I went back to the site and they list a different one for shut down but I'm not going to anything if you say it's not for a restart.


    How about this one using #2 will this restart?

    rundll32.exe shell32.dll,SHExitWindowsEx N

    Wait—before you click NEXT, replace the "N" at the end of the command line with one of the following numbers:

    0 - Log Off: Shuts down all running processes and logs the user off.
    1 - Shutdown: shuts system down to the point where you can turn off the computer.
    2 - Re-boot: shuts the system down and re-boots the computer.
    4 - Force: Shuts the system down without notifying any running programs (that really surprises 'em). Information can be lost with this one, so be careful. Probably best not to use it unless you have a real need to (like a program that refuses to let go during shutdown)
    8 - Poweroff: Shuts the computer down and turns the power off (on systems that support it).

    You can use combinations of the above by adding them together. For example, use 6 to re-start (2
     
    Last edited: 2004/01/18
  5. 2004/01/18
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
    OK, LadyLuck, what is your goal? What do you want to achieve?
     
  6. 2004/01/19
    ski123

    ski123 Inactive

    Joined:
    2002/01/09
    Messages:
    163
    Likes Received:
    0
    ladyLuck,

    OK! Here are the command lines:

    Restart Windows only:
    C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsExec

    Restart complete:
    C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 2

    Shutdown computer:
    C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows

    ski123
     
  7. 2004/01/19
    ski123

    ski123 Inactive

    Joined:
    2002/01/09
    Messages:
    163
    Likes Received:
    0
  8. 2004/01/19
    gammaepsilon

    gammaepsilon Inactive

    Joined:
    2003/04/27
    Messages:
    267
    Likes Received:
    0
    This is off a 'One-click restart' topic but is often what folk are after - a 'one-click' to the Shutdown dialog.

    Type CreateObject( "Shell.Application ").ShutdownWindows in Notepad and Save As SDDialog.vbs, or whatever but keep the vbs extension, to an appropriate folder then create a shortcut to it on the dektop.
     
  9. 2004/01/19
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    broni
    Appreciate all the responses.

    my start/shutdown/restart does not work. I have no idea what has happened. If I try to do a normal restart, my computer freezes.
    I have tried all the various ways, including M$ fix, to correct this. I even did a reformat. Only worked one time after the format.

    I am trying to find a way to restart this computer. I know the trick about the "shift" key.

    I saw the info about the "shortcut" for a restart.

    Now I'm getting more confused and that's not hard to do when it comes to computers.

    Which one of these do I need to do that?

    Restart Windows only:
    C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsExec

    Restart complete:
    C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 2
     
    Last edited: 2004/01/19
  10. 2004/01/19
    gammaepsilon

    gammaepsilon Inactive

    Joined:
    2003/04/27
    Messages:
    267
    Likes Received:
    0
    RUNDLL is 16 bit and on some 98 machines the exit is not clean and you could end up with a Restart.

    Go with broni's 32 bit method ie the second of the two in your last post.

    If you want to keep your desktop tidy, right click the shortcut, click in the Shortcut key: section, hold the Ctrl key and press the 'End' key. Now Drag & Drop the shortcut to your Start Menu somewhere to put it out of sight.

    To Restart, just press Ctrl + Alt + End.
     
    Last edited: 2004/01/19
  11. 2004/01/19
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
    Do you have Fast Shutdown enabled? If so, disable it.
     
  12. 2004/01/19
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    broni, have no idea what a

    Fast Shutdown is or where to find it. Can you lead me to it?
     
  13. 2004/01/19
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
  14. 2004/01/20
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    broni


    Could you tell me why I should disable Fast shutdown?.

    My shutdown works.

    My restart does not
     
  15. 2004/01/20
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
    ladyluck
    I don't have a solution, just a thought. Worth to try, I guess. Nothing to loose. You can easily set that Fast Shutdown back. I've heard, Fast Shutdown, sometimes causes problems. In my humble opinion, restart goes through shutdown phase, so...
     
  16. 2004/01/21
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    Just to let you know, this did not work

    C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 2

    Freezes up on "windows is shutting down ".


    As I said, I have tried all the various ways, including M$ fix, to correct this. I even did a reformat. Only worked one time after the format.

    Also I have shut down programs in my startup one by one to see if one was causing this problem. No problems there.

    If anybody has any solution to my restart problem I'd appreciate any input.
     
  17. 2004/01/21
    goddez1

    goddez1 Inactive

    Joined:
    2002/01/12
    Messages:
    2,975
    Likes Received:
    49
    If you bootup in safemode does your restart function then?
     
  18. 2004/01/21
    ladyLuck

    ladyLuck Inactive Thread Starter

    Joined:
    2003/04/24
    Messages:
    133
    Likes Received:
    0
    goddez I never tried it.

    Do I shutdown and then hit the f8 key?
     
  19. 2004/01/21
    goddez1

    goddez1 Inactive

    Joined:
    2002/01/12
    Messages:
    2,975
    Likes Received:
    49
    Either taping F8 key during bootup or holding the Control key down. Some have to do it one way or the other. This is matter of timing and make take more than once or twice.

    OR

    >From windows 98 and on the startbutton run line>type msconfig
    >click on the [general tab]
    >select the advance button
    >put a tick in the option: "enable startup menu "
    >Reboot and you should find yourself at the startup menu that will allow a safemode option.

    BY the way "Disable Fastshutdown" option is in here to. You may want to give this a shot first, as long as your there. [Before trying a safemode bootup and restart. NOTE*Fastshutdown=This option may not be there if the shutdown patch was used. I think it removes this option and has it autoset from the registry.]

    OR

    I think tweakui has an option on one of the tabs that will change startup to go/show the bootmenu options. I just don't remember which tab. I'm on xp at the moment and tweakui is different version/animal.
     
    Last edited: 2004/01/21
  20. 2004/01/21
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    From the above quote I have to wonder if the problem is caused by something you installed right away. Either a program or a driver of some sort. You get windows up and running, install a driver or program, restart to complete the installation. On the first restart it works because the software you installed has not yet been loaded, but the next time, whatever you installed gets in the way and it no longer works the way it should. Don't suppose you can remember just what you did when you first got things running, can you??? If it works from safemode, I'd suspect a driver of some sort is the problem.
     
  21. 2004/01/22
    gammaepsilon

    gammaepsilon Inactive

    Joined:
    2003/04/27
    Messages:
    267
    Likes Received:
    0
    ladyluck

    Firstly, I reckon you'll not find the ability to disable Fast Shutdown in the advanced section of msconfig's General tab.

    Secondly, get back to us re shutting down in Safe Mode.

    If you haven't got the ability to disable Fast Shutdown and you still have a problem in Safe Mode then my tack would be to consider Power Management. (1)

    I've had my machine for four years and from about month three or four my shutdown problem started and was with me for about 18 months at a rate of 50% or more failures. Eventually, I ripped out Power Management from both the Device Manager and the Bios. I no longer have a Standby option in my Shutdown dialog and I no longer have a restart/shutdown problem. I'm telling porkies. Since installing Sygate Firewall a tad misbehaviour occurred. Instead of using the two second delay to allow disk writes as per a MS patch I increased it to 10. Hanging still occurs but very rarely.

    You will most certainly still have Power Management in some form so I'd suggest going here for the latest version of PMTShoot in the Disabling APM, Enabling ACPI section.

    PMTShoot doesn't work on my machine - it has nothing to do!

    Before going down this road make sure (1) above is true.
     
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.