Task Scheduler - Shut down IE9


  1. Posts : 5
    Windows 7 Pro 64 bit
       #1

    Task Scheduler - Shut down IE9


    I have a scheduled task that runs, using IE9.

    In Windows 7 Pro, the scheduled task Action is - Start a Program -
    "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
    and the argument is "What Is My IP Address - Shows Your IP Address".
    It runs at the same time every night.

    It starts a new session of IE9, runs to the URL, accomplishes that task, and stays on until morning, when I have to manually close it. Since it executes properly, the stop task commands under the Scheduler Settings tab have no effect.

    How can I shut down just this scheduled task session of IE9 after it executes? I am guessing I am missing one more command line parameter. (Other Internet suggestions include Taskkill, but that shuts down all IE sessions. Since I might have been working on issues when I go to sleep, shutting them down also doesn't work out for me.)

    Thanks.
    fr8549
      My Computer


  2. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #2

    Your task is using IE9 32 bit in "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
    You should also have IE9 64 bit in "C:\Program Files\Internet Explorer\iexplore.exe"

    Try changing your task to use IE9 64 bit.
    See if the task works with 64 bit, and killing that task leaves all your other 32 Bit sessions running.

    Not a great solution, but this may an easy work-around.

    edit - I'm assuming you do not currently use IE 64 bit...
    Last edited by DavidE; 23 Feb 2012 at 15:22. Reason: add ifo
      My Computer


  3. Posts : 5
    Windows 7 Pro 64 bit
    Thread Starter
       #3

    DavidW7ncus,

    That was a great idea, thanks. It worked great with my test site (whatsmyip.com) but when I went to my company site, which is set up to close the window automatically in 30 seconds, my browser pops up a window asking for permission to close the window. Waiting for user input stops everything in its place.


    Your suggestion, though, gave me the idea to use a browser other than IE, to see if that would resolve my dilemma, and it did! I reach the website, through the Task Scheduler, with Firefox, and close Firefox with Taskkill 5 minutes later. It works great!

    Thanks, again, for your suggestion. That helped me solve my issue.

    fr8549
      My Computer


  4. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #4

    Great. Glad you got it working.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:29.
Find Us