使用批处理文件设置活动窗口的优先级

时间:2016-06-13 22:38:51

标签: batch-file

我使用此代码设置正在运行的程序的优先级:

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"

0 个答案:

没有答案