Difference between WSH, WMI, VBScript and using all from QTP
Might anyone be able to explain the differences between these technologies, and whether both WSH and WMI can both simply added in with your VBScript code anyplace in an Action or Library file without restriction ?
Also, where you've put these to good use in your QTP Automation projects ?
Thanks in advance,
Re: Difference between WSH, WMI, VBScript and using all from QTP
Basically, WSH is a script execution environment and WMI is information/control of a Windows PC. MSDN has more info if you're interested.
Running these from script is pretty simple.
One example from me is using WMI to clean up errant Excel and IE processes before and after a test execution. Another is using WSH to get the directory of the currently running script in order to call some of my other goodies in the same directory.