怎么让电脑在特定时间自动关机

你是否经常忘记在睡觉前关闭电脑?是否经常因为工作繁忙而忽略时间?这篇文章将教你如何让电脑在特定时间自动关机。

方法 1 的 2:

使用任务计划程序

  1. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/d7\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-1-Version-5.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-1-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/d7\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-1-Version-5.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-1-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 1 打开任务计划程序。你可以在Windows 7和Windows 8系统中使用任务计划程序。在Windows 7系统中,点击 “开始”菜单 → “控制面板” → 系统和安全 → 管理工具→ 任务计划程序。在Windows 8系统中,按下Win 键,输入“计划任务”,从搜索结果中选择“任务计划”程序。
  2. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/4d\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-2-Version-5.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-2-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/4d\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-2-Version-5.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-2-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 2 点击“创建基本任务...”。这个选项位于窗口的右侧、操作菜单中。你需要输入任务的名字和描述。尽量用简单的名字来命名任务,如“定时关机”。点击下一步>
  3. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/21\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-3-Version-5.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-3-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/21\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-3-Version-5.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-3-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 3 选择任务频率。在“任务触发器”页面中,选择“每天”选项,然后点击下一步>。接着选择具体的关机时间,选择每晚什么时间让电脑自动关机。让“每隔:X 天发生一次”设置为“1”。点击下一步>
  4. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/a9\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-4-Version-4.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-4-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/a9\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-4-Version-4.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-4-Version-4.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 4 选择“启动程序”。这个选项位于“操作”界面,应该是电脑自动选择的默认选项。点击下一步> 按钮。
  5. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/88\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-5-Version-5.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-5-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/88\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-5-Version-5.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-5-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 5 输入关机程序的路径。当Windows系统关机时,它实际上是运行了一个关机程序。在“程序或脚本”中,输入C:\Windows\System32\shutdown.exe
    • 在“添加参数”一栏,输入/s。点击下一步 >
  6. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/31\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-6-Version-4.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-6-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/31\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-6-Version-4.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-6-Version-4.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 6 浏览你的设置。在概要界面,浏览你的设置,确认你已选择正确的时间。点击完成按钮,保存任务。此时,你的电脑会在每天特定的时间自动关机。[1]
方法 2 的 2:

创建一个BAT 文件

  1. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/b1\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-7-Version-4.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-7-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/b1\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-7-Version-4.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-7-Version-4.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 1 打开记事本。具体操作是,前往 “开始”菜单> 所有程序> 附件> 记事本。或者,在“开始”菜单中,直接输入“记事本”(不要输入引号),按下回车键。
  2. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/41\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-8-Version-5.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-8-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/41\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-8-Version-5.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-8-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 2 复制以下代码:
    • @echo off
    • :W
    • if %time%==00:00:00.00 goto :X
    • goto :W
    • :X
    • shutdown.exe /s /f /t 60 /c "去睡觉!!!!!!"
      • 这个命令会不断地查看时间,看是否到了午夜。如果到了午夜,它会给你发送一条“去睡觉!!!”的消息,然后自动关闭电脑。
  3. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/40\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-9-Version-5.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-9-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/40\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-9-Version-5.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-9-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 3 将“if %time%==”部分的时间更改为你选定的时间。你输入的时间必须是这种格式:HH:MM:SS.MS,而且必须是24小时制,否则无法正常工作。
  4. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/a7\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-10-Version-3.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-10-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/a7\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-10-Version-3.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-10-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 4 前往 文件> 另存为。
    • 将“保存类型”更改为“所有文件”。
    • 在文件名一栏输入“timer(定时器).bat”,然后点击“保存”。
  5. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/e\/e0\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-11-Version-3.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-11-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/e\/e0\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-11-Version-3.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-11-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 5 双击文件。屏幕上应该会出现一个空白的命令提示符界面。
  6. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/b8\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-12-Version-3.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-12-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/b8\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-12-Version-3.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-12-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 6 当你在工作的时候,不要关闭这个窗口。
  7. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/35\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-13-Version-3.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-13-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/35\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-13-Version-3.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-13-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 7 当到达你在步骤3中设定的时间时,你的电脑应该会显示一条消息,然后在一分钟后关闭电脑。
  8. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/f\/f0\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-14-Version-3.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-14-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/f\/f0\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-14-Version-3.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-14-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 8 如果你想要终止关机,请按下Windows键(就是有微软商标的按键)+ R键。
  9. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/35\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-15-Version-3.jpg\/v4-460px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-15-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/35\/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-15-Version-3.jpg\/v4-728px-Automatically-Shut-Down-Your-Computer-at-a-Specified-Time-Step-15-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 9 在出现的窗口中输入“shutdown -a”(不要带引号),按下回车键。应该会出现命令提示符窗口,接着就会消失。然后会出现一个跟它类似的气球状窗口。

警告

  • 这些步骤仅适用于 Windows 7系统的用户。对于其它操作系统来说,这个程序可能并不可用。
  • 记住,不要关闭命令提示符窗口。如果你愿意的话,可以最小化窗口。

<<:  怎么在MAC OS上使用Ping命令

>>:  怎么制作绿茶爽肤水

怎么与顾客打交道

任何做过沟通顾客的工作的人都会知道冷静和让所有人满意是多么地困难。顾客的抱怨、复杂或不合理的要求以及...

怎么打开PHP文件

本文教你如何在Windows 或Mac电脑上打开PHP编程文件,并进行编辑。 步骤 方法 1 的 2...

...

怎么增加肌肉和体重

如果你想增长肌肉,可以通过增加饮食的量和次数,还有正确的锻炼方式这两种方法达到目标。具体来说,你要多...

怎么做眼部瑜伽

瑜伽这项运动已经有好几个世纪的历史了。瑜伽不仅能放松眼部,还能让眼部肌肉更久敏锐。这套眼部瑜伽是为因...