How to automatically shut down the computer at a specific time

Author: Lewis Jackson
Date Of Creation: 6 May 2021
Update Date: 1 July 2024
Anonim
How to Set PC Auto shutdown timer in Windows 10 | Windows tutorial
Video: How to Set PC Auto shutdown timer in Windows 10 | Windows tutorial

Content

Always forget to turn off your computer before you climb into bed or forget to look at your clock while working? This article will guide you on how to turn off the computer at the time that you install it.

Steps

Method 1 of 2: Use Task Scheduler

  1. Open Task Scheduler. This option is available in Windows 7 and Windows 8. In Windows 7, click Start → Control Panel → System and Security → Administrative Tools → Task Scheduler. In Windows 8, press the key ⊞ Win, type "schedule tasks", and choose "Schedule tasks" from the search results.

  2. Click "Create Basic Task". This option is available in the "Actions" menu on the right side of the window. You must provide an activity name and description. Give a name that is easy to remember, such as "Shutdown Timer". Click Next> to continue.

  3. Select frequency. Select "Daily" on the "Task Trigger" page and click Next>. Choose how often you want to shut down your computer each night. Set "Recur ever: X days" to value "1". Click Next>.

  4. Select "Start a program". This option is located on the "Action" screen and is selected automatically. Click the Next> button to continue.
  5. Enter a location for the shutdown program. When Windows is shut down, the operating system is actually running a shutdown program. In the "Program / script" box, type C: Windows System32 shutdown.exe.
    • In the "Arguments" frame, type /S. Click Next>.
  6. Review settings. On the Summary screen, review the settings to make sure you have selected the correct date. Click the Finish button to save the activity. Your computer will now shut down at a certain time each day. advertisement

Method 2 of 2: Create BAT file

  1. Open notepad and go to Start> All Programs> Accessories> Notepad. Or by typing "notepad" without the quotes into the start menu and hit enter.
  2. Copy the code below:
    • @echo off
    • : W
    • if% time% == 00: 00: 00.00 goto: X
    • goto: W
    • : X
    • shutdown.exe / s / f / t 60 / c "Go to bed !!!!!!"
      • This action will continuously check the time to see if it is midnight, and if so, the computer will be turned off with the message "Go to bed !!!!"
  3. Replace if% time% == with the time you choose. The setting must be in format: HH: MM: SS.MS and in 24 hour format for it to work.
  4. Go to File> Save As.
    • Change the box "Save as type" to "All Files".
    • Type "timer.bat" into the filename and click "Save"
  5. Double-click the file. The command prompt screen will appear.
  6. Leave this window open while you work.
  7. When it reaches the time that you set up in method 3, your computer will display a message for one minute and then your computer will be turned off.
  8. If you want to cancel the shutdown process, press the Windows key (the key with the Microsoft logo) + R.
  9. Type "shutdown -a" without the quotes into the pop-up window and press Enter. The Command Prompt window will appear and disappear. A similar ball will appear as well. advertisement

Warning

  • These methods are only applicable to Windows 7 users. This program may not work on other operating systems.
  • Remember to always open a command prompt window. You can minimize the window if you want.