i use this code to set the priority of a running program:
set /p input=Program name:
wmic process where name="%input%" CALL setpriority "high priority"
Is there a way i can run the batch file then open my program and let the batch set priority without typing the name? mabye something that looks like this:
timeout 3 /nobreak >nul
wmic process active window CALL setpriority "high priority"