在Windows XP中使用批处理文件修改电源使用方案 [英] Modifying the Power Scheme using Batch Files in Windows XP

查看:202
本文介绍了在Windows XP中使用批处理文件修改电源使用方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写两个批处理文件,这些文件将允许我将电源使用方案(控制面板"->电源选项"->电源使用方案"选项卡)从家用/办公室"切换到便携式/笔记本电脑",然后再切换回.我的操作系统是Windows XP SP3.

I'm trying to write two batch files that will allow me to switch the Power Scheme (Control Panel -> Power Options -> Power Schemes Tab) from Home/Office Desk to Portable/Laptop and back. My operating system is Windows XP SP3.

之所以这样做,是因为我想在笔记本电脑上玩游戏时禁用SpeedStep(即将其放在家庭/办公室桌面方案上),否则要启用SpeedStep(返回便携式/笔记本电脑). Windows XP在家庭/办公室桌面模式下关闭关闭动态切换.我希望能够以编程方式执行此操作,以节省我每次玩游戏的时间.

My reason for doing this is because I want to disable SpeedStep when I'm playing games on my laptop (i.e. put it on the Home/Office Desk scheme) and enable SpeedStep otherwise (back to Portable/Laptop). Windows XP turns turns off dynamic switching in Home/Office Desk mode. I'd like to be able to do this programatically to save myself some time everytime I want to play a game.

是否有关于如何使用简单的批处理文件修改电源设置的想法? Python和Ruby脚本也是一种选择,但不是首选.

Any thoughts on how to modify the power settings using a simple batch file? Python and Ruby scripting is also an option but isn't preferred.

推荐答案

C:>%windir%\ system32 \ powercfg.exe/?

C:>%windir%\system32\powercfg.exe /?

    /SETACTIVE, /S  Makes the power scheme with the specified name active.
Examples:
    POWERCFG /SETACTIVE scheme

这篇关于在Windows XP中使用批处理文件修改电源使用方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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