`
lihbobo
  • 浏览: 64906 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

QTP杀进程方法

阅读更多

sub Close_Process(ProcessName)

On Error Resume Next

for each ps in getobject("winmgmts:\\.\root\cimv2'win32_process").instances_ '循环进程

if Ucase(ps.name) = Ucase(ProcessName) then

ps.terminate

end if

next

 

end sub

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics