Solved Syntax issue setting active power plan with

December 3, 2012 at 07:52:12
Specs: Windows 64

Can someone please correct the syntax on the below command--I keep getting a "%%i was unexpected at this time." error msg. Just trying to set the power plan identified in the import_plan.txt file as the active power plan


for /F "tokens=4 delims= " %%i in (import_plan.txt) do powercfg -setactive %%i


See More: Syntax issue setting active power plan with

Report •


#1
December 3, 2012 at 07:55:37
✔ Best Answer

If you're running that from the command line then only a single percent is used:

for /F "tokens=4 delims= " %i in (import_plan.txt) do powercfg -setactive %i

Double percent signs are only needed in scripts.

Tony


Report •
Related Solutions


Ask Question