Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Close an IE Window Using Task Scheduler 1

Status
Not open for further replies.

damipera

Technical User
Dec 1, 2005
134
GB
Hi guys! Can you advise me on this please? I have a file called apple.html that is to be run daily by the task scheduler. This apple.html will be opened by IE and will redirect to the web address: and orange.asp are on same folder)And what I want is to close the window of orange.asp after sometime, say 5 seconds. I can close orange.asp using javascript, i just want to know if it's possible also to close IE using Task Scheduler? Can you advise my on this please? Thanks
 
You'd have to create a batch file to do that, and give it proper permissions, below the lines you'll need to make it wait 10 seconds and then kill Internet Explorer, realize this will kill all Internet Explorer windows open, there is no way to isolate one window.


The below two lines should be put into a batch file for task scheduler to run, changing the first 10 to 05 will make it wait only 5 seconds instead of 10

@ping 127.0.0.1 -n 10 - w10 > null
TASKKILL /f /im IEXPLORE.EXE

"I'm certifiable, not certified. It just means my answers are from experience...not a book
 


That's what i needed. Thanks drew1701d, YOURE AWESOME!!!!! cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top