Close a process


‘Examples of closing a process
‘Give # of closed processes
numClosed=SystemUtil.CloseProcessByName(“iexplore.exe”)

‘Title with a regular expression
SytsemUtil.CloseProcessByWndTitle “Microsoft Internet Explorer.*”,True

‘Title without a regular expression
SystemUtil.CloseProcessByWndTitle “Notepad”

‘Close process by the process id
SystemUtil.ClosePRocessBYId processed

‘Close all processes opened by QTP
SystemUtil.CloseDescedentProcesses

Contributed by: Vamshi Gowtham
m.vamsigowtham@gmail.com