Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

iexplore.exe *32

task

  • Please log in to reply
6 replies to this topic

#1
dlchase

dlchase
  • Member
  • 3 posts
  • Joined 01-December 14
  • OS:Server 2008R2
  • Country: Country Flag

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?




How to remove advertisement from MSFN

#2
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,164 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

I also have this sometime when I close the Internet Explorer. Run taskkill/pskill to close the exe.


Posted Image

#3
dlchase

dlchase
  • Member
  • 3 posts
  • Joined 01-December 14
  • OS:Server 2008R2
  • Country: Country Flag

Added a separate task job in scheduler that runs command below.

 

TASKKILL /F /IM iexplore.exe

 

Seems to work so far.



#4
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,164 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

nice to hear this :)


Posted Image

#5
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,022 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

Ideally, your usage of taskkill should be run from within the EXE itself, rather than potentially leaving something behind in Task Scheduler. Hopefully you won't run into a situation where this task runs when it shouldn't.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#6
dlchase

dlchase
  • Member
  • 3 posts
  • Joined 01-December 14
  • OS:Server 2008R2
  • Country: Country Flag

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


#7
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,022 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users