Current scenario:
Running test via VBS file. The same file generates an html view of the results and emails the results out. Everything works as designed.

Additional question:
I would like to get the test run results from qtp script using the method Reporter.RunStatus -this would be one of the following 0,1,2- and use the value into my VBS file so to email different type of messages according to the output obtained.

Hint:
I thought about the Parameters when facing this issue but I don't know from where to start. First of all because I'm not sure if that is a good solution to go for.

I would like to share some view on this scenario to see if there is anybody that could suggest the best approach to resolve this issue.

Thanks in advance