"Command Prompt" - Command to Hibernate with Time

Discussion in 'Windows 8 Help and Support' started by Tiago, Apr 18, 2015.

  1. Tiago

    Tiago Active Member

    Joined:
    Mar 23, 2015
    Messages:
    41
    Likes Received:
    1
    • I know, the command "shutdown / h" makes the computer hibernate, immediately. I want to do the same command, but with: + timer to run.

    • Like as the command "shutdown -s -t 5400" makes the computer off not immediately, but after 90 min. I want to hibernate computer.

    • Question: How to Write a command line to Hibernate Timer?

    Windows 8.1
     
    #1 Tiago, Apr 18, 2015
    Last edited: Apr 18, 2015
  2. ussnorway

    ussnorway Windows Forum Team
    Staff Member Premium Supporter

    Joined:
    May 22, 2012
    Messages:
    2,540
    Likes Received:
    318
    1. This forum is for tutorials and this post doesn’t belong here.
    2. The example code you are asking about will never work, simply because once a system shuts down it is OFF and stops responding to the users code/ inputs… a scenario that has a computer shut down then hibernate isn’t workable.
    3. In Windows 8.1 there is already built in timers for screensavers, sleep, shut down and hibernate and these can be set from the power options or you can set the system (also in power options) to hibernate strait away when a [hibernate key] is pressed… most laptops also allow you to hibernate when the lid is closed.
    4. Some of the better name brands like Asus and Gateway allow you to set hibernate and wake up setting in the motherboard bios… these tend to be for scenarios that have a system waking up/ hibernating after receiving a ping across the network so that servers can be reached remotely but there is some flexibility built into their system.

    Finally hibernating has several performance issues that Windows never managed to fully resolve and has been fazed out in favour of the sleep command… one of the main 3 advantages of using the current UEFI system is it’s fast wake up/ boot and that largely makes the hibernate system (outside of legacy installs) redundant.
     
    Tiago likes this.
  3. Tiago

    Tiago Active Member

    Joined:
    Mar 23, 2015
    Messages:
    41
    Likes Received:
    1
    Sorry. I got it. The command is: "timeout /t 5400 /nobreak & shutdown /h" (for 90 minutes = 1,5 hour) for Hibernate with timer. And can be used Task Scheduler to program when will executed. Simply place the code in a notepad and save as .bat file.
    Thank you!:);):thumbs_up:
     
    #3 Tiago, Apr 18, 2015
    Last edited: Apr 18, 2015

Share This Page

Loading...