I am using a batch file to kill all instances of internet explorer, and then start it again using a shortcut that is on the hard drive. The shortcut is a HTML file that has a URL & Login information in it. The IE version is IE 11. The site requires the browser to be Internet Explorer. The batch file is as follows:
taskkill /f /t /im iexplore.exe
start /max "iexplore.exe" "C:\Users\Public\Documents\mysite.htm"
The HTML file has:
<html>
<body onload='f1.submit();'>
<form id=f1 action="http://ift.tt/1IGI68z" method=post>
<input id=uid name=uid type=text value=user1 style="visibility: hidden">
<input id=pwd name=pwd type=text value=pass1 style="visibility: hidden">
<input type=submit style="visibility: hidden">
</form>
</body>
</html>
The problem is, if I X out of the browser, the next time the batch file is run, it opens it in a new tab. So, even though the "new" tab is logged in, the other old tabs are still retained when IE starts again.
How can you make IE 11 forget the last page it had open & force this to open in the first tab of a new browser each time?
Aucun commentaire:
Enregistrer un commentaire