I am working on an hta file that calls code in a .js file that creates an ie object. The code in the java script file is:
objExplorer = WScript.CreateObject("InternetExplorer.Application");
objExplorer.Visible = 1;
objShell.AppActivate ("Mobile Workload - Microsoft Internet Explorer");
Now, in the .hta file that is supposed to manage and be the 'homepage' for this application has this code to call the .js file:
var shell = new ActiveXObject( "WScript.Shell" );
if( pMPSWorkload == null)
pMPSWorkload = shell.run( "WScript D:/mps/mps.js", 1, true );
I think I need to use GetObject sort of like this:
var colListOfServices = objWMIService.ExecQuery ("Select * from Win32_Service Where Name = 'JBoss'");
var enumItems = new Enumerator (colListOfServices);
for (;!enumItems.atEnd(); enumItems.moveNext())
objJBossService = enumItems.item();
However, the ie instance does not show up in Services, and I do not know what to query to look for it. I have found some examples with Excel, and they query Win32LogicalDisk. The examples always start out saying that GetObject in VB is similar and then go into an explanation of how to use VB as "you will probably not need to EVER use WMI.... but I cannot use VB!
Please help! any info will be greatly appreciated!