The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Shutdown & Restart shortcuts?

    Discussion in 'Windows OS and Software' started by Carrot Muncher, Mar 15, 2009.

  1. Carrot Muncher

    Carrot Muncher Notebook Evangelist

    Reputations:
    71
    Messages:
    463
    Likes Received:
    0
    Trophy Points:
    30
    I would like to create a shutdown and restart shortcut, I've googled and different methods come up so I'm a little lost as to which one to use. Basically what I want is for the laptop to shutdown/restart normally as if it would by me going to 'start, turn off computer'

    For shutdown would it be 'shutdown.exe -s'? Or would I have to put a timer '-t 30' for example? At the moment my laptop will shutdown sometimes as quickly as 5-10 seconds so is the timer necessary or is just a way to abort the shutdown/restart?

    TIA :)
     
  2. pillowshot

    pillowshot Notebook Consultant

    Reputations:
    207
    Messages:
    276
    Likes Received:
    0
    Trophy Points:
    30
    shutdown: C:\Windows\System32\shutdown.exe -s -t 00 -f

    restart: C:\Windows\System32\shutdown.exe -r -t 0


    If you use a timer then a shutdown dialog thing will come up and count down however long you put, then it will initialize the shutdown process. I think you can only cancel the process if you have a timer, but I'm not sure of the command to cancel the shutdown.
     
  3. goofball

    goofball Notebook Deity

    Reputations:
    358
    Messages:
    1,710
    Likes Received:
    0
    Trophy Points:
    55
    shutdown -a is to abort the shutdown.
     
  4. qhn

    qhn Notebook User

    Reputations:
    1,654
    Messages:
    5,955
    Likes Received:
    1
    Trophy Points:
    205
    Once the shutdown process starts, this command rarely (if ever) works. Never on my comps, anyway.

    cheers ...
     
  5. jackluo923

    jackluo923 Notebook Virtuoso

    Reputations:
    1,038
    Messages:
    3,071
    Likes Received:
    1
    Trophy Points:
    105
    you can also remote shutdown by using -i in the command if you know someone's ip address

    e.g. shutdown -i

    Then select the options you want
     
  6. goofball

    goofball Notebook Deity

    Reputations:
    358
    Messages:
    1,710
    Likes Received:
    0
    Trophy Points:
    55
    It does if you have the time to run it. It only stops it if you get the popup window stating the system will restart in x amount of seconds. If it has started the shutdown process (closing windows), I don't believe it will stop it at that point.
     
  7. Carrot Muncher

    Carrot Muncher Notebook Evangelist

    Reputations:
    71
    Messages:
    463
    Likes Received:
    0
    Trophy Points:
    30
    Thanks lads, most helpful.

    I've found the only thing shutdown -a has been useful for is when a friend had a virus years ago that would pop up with a 1 minute shutdown box.
     
  8. pillowshot

    pillowshot Notebook Consultant

    Reputations:
    207
    Messages:
    276
    Likes Received:
    0
    Trophy Points:
    30
    If you set the shutdown to have a timer that shutdown box is what'll come up.
     
  9. Kocane

    Kocane Notebook Deity

    Reputations:
    395
    Messages:
    1,626
    Likes Received:
    15
    Trophy Points:
    56
    That suuure sounds like a virus.. Unless its the blaster worm lol
     
  10. Carrot Muncher

    Carrot Muncher Notebook Evangelist

    Reputations:
    71
    Messages:
    463
    Likes Received:
    0
    Trophy Points:
    30
    blaster, yer that rings a bell could have been that one.
     
  11. Carrot Muncher

    Carrot Muncher Notebook Evangelist

    Reputations:
    71
    Messages:
    463
    Likes Received:
    0
    Trophy Points:
    30
    bah, I can't use the shutdown/restart command for the rainmeter config im making, nothing happens. :(