Custom Search

Wednesday, March 25, 2009

Kill the Process Through QTP

Killprocess = "Process name" per ex : calc.exe
Set ProcessList = GetObject("winmgmts://.").InstancesOf("win32_process")
For Each Process In ProcessList

If Process.Name = KillProcess Then
Process.Terminate
End IfNext

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.