| Windows 7: Task Scheduler - Shut down IE9 |
23 Feb 2012
|
#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 System Specs |
| System Manufacturer/Model Number Dell Inspiron 620 OS Windows 7 Pro 64 bit CPU Intel i3 Motherboard unknown Memory 6 GB Graphics Card Intel HD Graphics Family Sound Card Conexant HD Audio Monitor(s) Displays Dell IN2020M PSU Dell 300w Case Mid-Tower Cooling Std Hard Drives WDC WD10EALX-759BA1 |
23 Feb 2012
|
#2 | | Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 NC, USA |
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 DavidW7ncus; 23 Feb 2012 at 03:22 PM..
Reason: add ifo
| My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number home built OS Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 CPU AMD Athlon II x4 620 Motherboard Gigabyte GA-MA785G-UD3H Memory 6GB GSkill DDR2 800 Graphics Card AMD 4670 GPU + AMD 4200 IGP Sound Card on board Realtek ALC889A Monitor(s) Displays RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor Screen Resolution 1680 x 1050... Keyboard Gyration wireless, Logitech wireless, Dell USB wired Mouse Gyration wireless, Logitech wireless, V7 USB wired PSU Corsair 500 W Case Rosewill mid tower Cooling CM 90mm Tower Hard Drives OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ... Internet Speed Uverse - 12Mbps D / 1.5Mbps U Antivirus Avast free OR MSE. (+ MBAM Pro). Browser 1-Firefox, 2-IE. (Chrome and Opera for testing) Other Info 2 PCs: Primary: dual-boot, Test: triple-boot.
Mainly HTPC/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.
Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.
Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner. |
24 Feb 2012
|
#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 System Specs | | System Manufacturer/Model Number Dell Inspiron 620 OS Windows 7 Pro 64 bit CPU Intel i3 Motherboard unknown Memory 6 GB Graphics Card Intel HD Graphics Family Sound Card Conexant HD Audio Monitor(s) Displays Dell IN2020M PSU Dell 300w Case Mid-Tower Cooling Std Hard Drives WDC WD10EALX-759BA1 |
24 Feb 2012
|
#4 | | Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 NC, USA |
Great. Glad you got it working. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number home built OS Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 CPU AMD Athlon II x4 620 Motherboard Gigabyte GA-MA785G-UD3H Memory 6GB GSkill DDR2 800 Graphics Card AMD 4670 GPU + AMD 4200 IGP Sound Card on board Realtek ALC889A Monitor(s) Displays RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor Screen Resolution 1680 x 1050... Keyboard Gyration wireless, Logitech wireless, Dell USB wired Mouse Gyration wireless, Logitech wireless, V7 USB wired PSU Corsair 500 W Case Rosewill mid tower Cooling CM 90mm Tower Hard Drives OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ... Internet Speed Uverse - 12Mbps D / 1.5Mbps U Antivirus Avast free OR MSE. (+ MBAM Pro). Browser 1-Firefox, 2-IE. (Chrome and Opera for testing) Other Info 2 PCs: Primary: dual-boot, Test: triple-boot.
Mainly HTPC/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.
Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.
Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner. Task Scheduler - Shut down IE9 problems? All times are GMT -5. The time now is 03:33 PM. | |