LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there vi that can close Windows 7 Internet Explorer?

Greetings,

I develop LabVIEW executables for internal use. We have a very loose IT policy. When our techs are running my LabVIEW programs, I want Windows 7 Internet Explorer disabled, or closed when the LabVIEW executable is running. I am thinking that there must be a way to have LabVIEW look for any open Internet Explorer Windows, and close them every 10 seconds or so. Any ideas of how to accomplish this?

Thanks, Alan

 

0 Kudos
Message 1 of 3
(2,662 Views)

You can use Web Browser ActiveX object to stop IE browser during your application running.

 

http://msdn.microsoft.com/en-us/library/aa752085(v=vs.85).aspx

 

Or

 

Stop IE Browser Windows  Service.

0 Kudos
Message 2 of 3
(2,656 Views)

@puneet K wrote:

You can use Web Browser ActiveX object to stop IE browser during your application running.

 

http://msdn.microsoft.com/en-us/library/aa752085(v=vs.85).aspx


This will not stop an Internet Explorer that's been launched by the user. It only applies to an embedded IE ActiveX control.

 


Stop IE Browser Windows  Service.

What IE Browser Windows service? There is no such thing.

 

 

To OP: You can:

  • Use System Exec to kill any currently running iexplore.exe processes using the kill command. Or you could just blindly send this periodically.
  • You could use the Windows API Function Utilities (32-bit) for LabVIEW to check if an Internet Explorer window is open (though this may not be robust since it depends on the window name) and then close that window.
  • You could uninstall IE.

Of course, this won't stop somebody from using Firefox, or using an app-on-a-stick approach by putting a browser like Firefox or Chrome on a USB stick.

 

 

Usually in these cases education goes farther than you trying to prevent somebody from running something like a web browser.

0 Kudos
Message 3 of 3
(2,646 Views)