200悬赏!!怎么把任务管理器设置的优先级,在重启之后也有效!

2025-03-06 03:35:34
推荐回答(3个)
回答1:

200分直接给我吧,方法如下
用命令提高已运行程序的优先级,cmd命令将下面这个一句话写在命令提示符窗口里面:
echo y|wmic process where "name='a.exe'" call setpriority 256
a.exe就是对应的程序
或者将上面这一句话复制粘贴到bat文件里面运行,测试通过。

回答2:

例如,设置记事本进程(notepad.exe)的优先级为“高”,vbs 代码:
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colProcesses = objWMIService.ExecQuery("Select * from Win32_process where name='notepad.exe'")
For Each objProcess In colProcesses
objProcess.SetPriority 128 'vbs的这个参数是数字,“低于标准”和“高于标准”不知道怎么设置。
Next

设置优先级为“高于标准”,cmd 命令:
wmic process where name='notepad.exe' call SetPriority "Above Normal"
优先级参数(参数是数字或一个单词可以不加引号):
64 低
32 标准
128 高
256 实时
Idle 低
Below Normal 低于标准
Normal 标准
Above Normal 高于标准
High Priority 高
Realtime 实时
把VBS放到启动项 让开机启动

回答3:

 wmic.exe path Win32_Process where "name='explorer.exe'" call Terminate


ping /n 3 127.1 >nul 2>nul



wmic.exe path Win32_Process where "name='explorer.exe'" call setpriority "32768"