对已经运行的进程批处理文件中设置进程的优先级 [英] Set process priority on already running process batch file

查看:1644
本文介绍了对已经运行的进程批处理文件中设置进程的优先级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要如何改变一个已经运行的posses我的优先级,现在我可以用它来启动posses: START / HIGH的notepad.exe 但我怎么改它已在运行的记事本。感谢如果任何人能帮助这一点。

How do i change the priority of an already running posses i now that i can use this to start the posses: START /HIGH notepad.exe but how do i change it for an already running notepad. Thanks if any one can help with this.

推荐答案

使用的 WMIC (WMI命令行):

Use wmic (WMI command-line):

wmic process where name="notepad.exe" CALL setpriority "high priority"

的优先级可以被闲置,低于正常水平,正常,高于正常,高优先级,实时,或一个整数值。

The priority can be "idle", "below normal", "normal", "above normal", "high priority", "realtime", or an integer value.

有关优先整型值可以在发现这个MSDN页

Integer values for priorities can be found on this MSDN page.

这篇关于对已经运行的进程批处理文件中设置进程的优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆