New
#1
How can I use .bat files to run games with different power plans?
Hello,
I have created two .cmd files where I can change power plans really quick.
The code in the .cmd files looks like this:
powercfg /s 381b4222-f694-41f0-9685-ff5bb260df2e
exit
This works fine. But now I want to have a .bat file, which activates a power plan until the game is closed.
For example:
I want to change the power plan to high performance. Then a game out of origin or steam should start. When I close the game, power plan should switch back to balanced.
I tried following code, but this still does not work:
start /b "c:\users"username"\desktop" performance.cmd
start /d "d:\games\origin" originclientservice.exe
start /d "d:\games\origin" originwebservice.exe
start /d "d:games\origin\origin games\mass effect andromeda" masseffectandromeda.exe
start /b "c:\users"username"\desktop" balanced.cmd
The game starts, but the balanced power plan is still active. How can I say, that the .bat file has to wait until the game is closed?