Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Task Scheduler - Shut down IE9

23 Feb 2012   #1

Windows 7 Pro 64 bit
 
 
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 System SpecsSystem Spec
.

23 Feb 2012   #2

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

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...
My System SpecsSystem Spec
24 Feb 2012   #3

Windows 7 Pro 64 bit
 
 

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 System SpecsSystem Spec
.


24 Feb 2012   #4

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

Great. Glad you got it working.
My System SpecsSystem Spec
Reply

 Task Scheduler - Shut down IE9




Thread Tools




Our Sites

Site Links

About Us

Find 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 06:12 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33