如何锁定进程优先级?
的有关信息介绍如下:使用命令提高已运行程序的优先级用cmd命令将下面这个一句话写在命令提示符窗口里面:echo y|wmic process where "name='iw4sp.exe'" call setpriority 256或者将上面这一句话复制粘贴到bat文件里面运行,测试通过。补充回答:本来打算用vbs解决,方法如下:'══代══码══开══始════Set wmiService = GetObject("winmgmts:\\.\root\cimv2")Set wmiObjects = wmiService.ExecQuery("SELECT * FROM Win32_process where name='iw4sp.exe'")For Each wmiObject In wmiObjects wmiObject.setPriority(256)next'══代══码══结══束════原理一样,但是总是只能设置为高优先级,而不是实时。======================start /realtime notepad.exeecho y|wmic process where "name='dnf.exe'" call setpriority 32wmic process where name='dnf.exe' call SetPriority "Above Normal"%64 低32 标准128 高256 实时Idle 低Below Normal 低于标准Normal 标准Above Normal 高于标准High Priority 高Realtime 实时%