找回密码
 加入
搜索
查看: 2334|回复: 2

[AU3基础] 求个结束ey311.exe随机进程然后删除的源码

[复制链接]
发表于 2012-3-17 17:23:43 | 显示全部楼层 |阅读模式
进程名一般为ey***.exe(*号为数字)
路径为:\Documents and Settings\Administrator\Local Settings\Temp
发表于 2012-3-17 17:48:49 | 显示全部楼层
Local $list = ProcessList()
local $aProc = _ArrayFindAll($list, 'ey', 0,0,0,1)
for $i in $aProc
  if stringinstr(_winapi_getprocessfilename($aProc[$i][0]), @temp) then
    processclose($aProc[$i][1])
  endif
next
发表于 2012-3-17 19:46:59 | 显示全部楼层
蛋大的码我这运行不了.
按自己的思维发挥下:
#Include <WinAPIEx.au3>

$pList = ProcessList()
If @error Then Exit
For $i = 1 To $pList[0][0]
        If StringRegExp($pList[$i][0], 'ey\d+\.exe') Then
                If StringRegExp(_WinAPI_GetProcessFileName($pList[$i][1]), '(?i)Administrator') Then ProcessClose($pList[$i][0])
    EndIf
Next
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-20 16:50 , Processed in 0.077633 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表