I would like to create a batch file that checks the current system power mode and change it if necessary. I have the following. What am I doing wrong? (it does not work)
@ECHO OFF
SET _CURRENT_POWER_SCHEME = POWERCFG -GETACTIVESCHEME
IF NOT %_CURRENT_POWER_SCHEME% == "Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)"(
POWERCFG -SETACTIVE "381b4222-f694-41f0-9685-ff5bb260df2e"
)
Thanks for the help.
PAUSEbefore theIFstill causes it to be closed?! – HaydnWVN Aug 1 '12 at 13:02