我使用此代码设置正在运行的程序的优先级:
set /p input=Program name:
wmic process where name="%input%" CALL setpriority "high priority"
有没有办法可以运行批处理文件然后打开我的程序并让批处理设置优先级而不输入名称? mabye看起来像这样:
timeout 3 /nobreak >nul
wmic process active window CALL setpriority "high priority"