NBCLUB笔记本电脑俱乐部 合肥THINKPAD APPLE LENOVO DELL专卖店's Archiver

bobwu 发表于 2024-7-12 00:50

终极指南:跨时代一键设定,从Windows XP到Windows 11的自动关机秘籍

<p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">从Windows XP开始到Windows 11,设置电脑自动关机的方法基本相似,主要通过任务计划程序或使用命令提示符来实现。下面我将概述从Windows XP到Windows 11设置自动关机的方法:</p><h3 data-spm-anchor-id="5176.28103460.0.i10.29a53da2eLyOOu" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">方法1:使用<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">shutdown</code>命令</h3><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">适用系统:Windows XP,Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11</p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">一、按&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">Win + R</code>&nbsp;键打开“运行”对话框。</p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/438b07c16e8fccae179ca64d1e208a11-1720690372158.png&amp;name=mceclip0.png" width="600" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">二、输入&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">cmd</code>&nbsp;并按 Enter 打开命令提示符。</p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/d366d6e7ef992d1edd8f35b43a1357eb-1720690406840.png&amp;name=mceclip1.png" width="600" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">三、在命令提示符中输入以下命令来安排关机时间:</p><div class="tongyi-ui-highlighter global-dark-theme" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><div style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">shutdown /s /t [秒数]</code></p></div></div><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">其中&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">[秒数]</code>&nbsp;是你希望延迟关机的时间,以秒为单位。例如,如果你想要在10分钟后关机,可以输入:</p><div class="tongyi-ui-highlighter global-dark-theme" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">shutdown /s /t 600</code></p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">四、如果需要取消已经设置的自动关机,可以使用命令<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">shutdown -a</code></p><h3 style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">方法2:使用<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">at</code>命令</h3><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">适用系统:Windows XP和早期版本</p><p data-spm-anchor-id="5176.28103460.0.i12.29a53da2eLyOOu" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在Windows Vista之后的版本中,<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">at</code>命令被Task Scheduler(任务计划程序)所取代,但是你可以使用类似的方法:</p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">一、按Win + R键打开“运行”对话框。</p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">二、输入&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">at [时间] shutdown /s</code>,其中&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">[时间]</code>&nbsp;是你希望关机的确切时间。例如:</p><pre data-spm-anchor-id="5176.28103460.0.i13.29a53da2eLyOOu" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">at 23:00 shutdown /s</code></pre><h3 style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">方法3:使用任务计划程序(Task Scheduler)</h3><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">适用系统:Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11</p><ol style="margin: 0px; padding: 0px; list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">Windows 7在开始菜单底部的搜索栏输入“计划任务”,Windows 8/8.1可以通过Win+Q搜索“计划任务”,Windows10/11按&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">Win + R</code>&nbsp;键,输入&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">taskschd.msc</code>&nbsp;并按 Enter 打开任务计划程序。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/6973340dde23f4e5092d293618a6fe73-1720690689869.png&amp;name=mceclip2.png" width="800" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">通过“任务计划程序”中单击“创建基本任务”,打开任务向导。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511001.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121101558883.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在“创建基本任务向导”中名称一栏,输入事件名称,如“关机”,点击“下一步”。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511002.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121101836511.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">触发器选择关机频率和时机,然后下一步。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511003.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121101929695.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"><br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511004.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121102011896.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在“操作”部分,选择“启动程序”。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511005.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121102111787.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在“程序/脚本”输入框中输入以下命令:<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">C:\Windows\System32\shutdown.exe<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在“添加参数”输入框中输入:<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">/s /f /t 60<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">这里的<code class="inlineCode___uUrJ9" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">/s</code>代表关机,<code class="inlineCode___uUrJ9" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">/f</code>代表强制关闭正在运行的应用程序,<code class="inlineCode___uUrJ9" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">/t 60</code>代表60秒后执行关机,不填的话默认是30秒后关机。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511006.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121102142597.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">点击“完成”。<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121105511007.jpg" alt="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20140121102318762.jpg" style="cursor: pointer; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></li></ol><h3 data-spm-anchor-id="5176.28103460.0.i14.29a53da2eLyOOu" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">方法4:创建批处理文件</h3><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">适用系统:Windows XP,Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11</p><ol style="margin: 0px; padding: 0px; list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在桌面上右击,选择“新建” -&gt; “文本文档”。</li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">打开文本编辑器,输入以下内容:<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">shutdown /s /t [秒数],</code>保存并关闭文本编辑器。</li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">更改文件扩展名从&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">.txt</code>&nbsp;到&nbsp;<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">.bat</code>,然后双击运行该批处理文件。</li></ol><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp; 取消自动关机</p><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp; 如果你改变了主意,想取消已经安排的自动关机,可以使用以下命令:<code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">shutdown /a,</code>在命令提示符中执行此命令即可。</p><h3 style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">方法5:“关机”快捷方式</h3><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">适用系统:Windows XP</p><ol style="margin: 0px; padding: 0px; list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><strong style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">创建快捷方式</strong>:</p><ul style="list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">右键点击桌面空白处,选择“新建” -&gt; “快捷方式”。</li></ul></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><strong style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">指定位置</strong>:</p><ul style="list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">在创建快捷方式的窗口中,输入以下路径:<div class="codeBlock___D3KDO" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="topSticky___mD7Ze" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div><div style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">%SystemRoot%\system32\shutdown.exe</code></div></div></li></ul></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><strong style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">命名快捷方式</strong>:</p><ul style="list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">点击“下一步”,为快捷方式命名,例如“自动关机”。</li></ul></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><strong style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">添加参数</strong>:</p><ul style="list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">点击“完成”后,右键点击新创建的快捷方式,选择“属性”,在“快捷方式”标签页下的“目标”输入框中,添加参数:<div class="codeBlock___D3KDO" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="topSticky___mD7Ze" style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div><div style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><code style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">-s -f -t 60</code></div></div></li></ul></li><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><strong style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">保存并使用</strong>:</p><ul style="list-style: none; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><li style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">点击“确定”保存设置。现在,双击这个快捷方式就会启动自动关机。</li></ul></li></ol></div>

chengxyt 发表于 2024-7-12 18:28

SF

页: [1]

皖ICP备17017115-1号

皖公网安备 34010402700113号


Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.