We created an exe from Visual Studio that just opens a browser to a designated web page (.aspx file). The web page does some processing and then closes. We added running it from windows task scheduler and it runs fine. However, it leaves processes in the Task Manager called "iexplore.exe *32" for some reason. If I just run the exe by double clicking it it does not leave the "iexplore.exe *32" processes in Task Manager. It is freaky. Any ideas?
Login to Account Create an Account
Posted 01 December 2014 - 07:04 PM
Posted 01 December 2014 - 10:25 PM
I also have this sometime when I close the Internet Explorer. Run taskkill/pskill to close the exe.
Posted 02 December 2014 - 10:52 AM
Added a separate task job in scheduler that runs command below.
TASKKILL /F /IM iexplore.exe
Seems to work so far.
Posted 02 December 2014 - 10:58 AM
nice to hear this
Posted 03 December 2014 - 08:31 AM
Posted 03 December 2014 - 09:08 AM
I would like to do it inside the exe but not sure how to do this. The exe opens IE to a specific web page. That web page runs some code to update accounting files from an SQL Server database. The web page is still running when the exe windows form closes so iexplore.exe is still running. The web page uses window.close in final code so that web page auto closes when updating is done. Below is my exe code in case you have any suggestions.
Public Class Form1 Public Sub Main() Try Dim webAddress As String = "http://msnt01/BodyShop/Updater.aspx?from=vb" Dim P As Process = Process.Start(webAddress) P.WaitForInputIdle() P.Kill() Catch Finally Application.Exit() End Try End Sub Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load Main() End Sub End Class
Posted 03 December 2014 - 11:00 AM
I do not use your language, however the theory would be the same. So the website itself will close the browser window. Your program can wait for the window to close. And then once it is closed, it can then kill the iexplore.exe process before exiting.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users