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
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 %iDouble percent signs are only needed in scripts.
Tony
