Closes all processes opened by QTP/UFT.QTP-closedescendentprocesses

Syntax –

object.CloseDescendentProcesses

Example –

Sub CloseDescendentProcesses_Example()
’Suppose that the Record and Run dialog box opens a Windows ‘Explorer window at the beginning of a test run, and then the ‘statement below opens a Notepad window. In this case the message ‘box statement below displays 2.
SystemUtil.Run "Notepad.exe"
MsgBox SystemUtil.CloseDescendentProcesses
End Sub