创建批处理文件以更改Windows 7中的电源选项 [英] Create a batch file to change the power options in Windows 7

查看:55
本文介绍了创建批处理文件以更改Windows 7中的电源选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建批处理文件并将其放置在桌面上以更改Windows 7中的电源选项?具体来说,我将计算机设置为在30分钟后进入睡眠状态.现在,我使用向我服务/向我流媒体发送"应用程序,我希望能够快速更改电源设置以允许连续运行,然后在使用流媒体应用程序完成后将电源设置快速更改回30分钟睡眠.这是怎么做的?能做到吗?

Is there a way to create batch file and place it on the desktop to change the power options in Windows 7? Specifically I have the computer set to sleep after 30 minutes. Now that I use "Serve To Me/Stream To Me" apps I want to quickly be able to change the power settings to allow continuous operation and then quickly change the power settings back to 30 minute sleep when i'm done using the streaming apps. How is this done? Can it be done?

谢谢加里

推荐答案

创建或修改要使用的电源方案.

Create or modify the power schemes you want to use.

启动RegEdit并导航至:

Launch RegEdit and navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes

浏览这些方案并找到要使用的方案的GUID(长字符串).

Look through the schemes and find the GUID (long strings of characters) of the scheme you want to use.

创建一个批处理文件,如下所示:

Create a batch file like so:

@echo off
powercfg -s (GUID of the Scheme you wish to switch to.)
pause (Optional)

适当命名批处理文件.

您将为每个要切换到的方案制作一个批处理文件.

You will make one batch file for each scheme you want to switch to.

这篇关于创建批处理文件以更改Windows 7中的电源选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆