How to run Internet Explorer in Windows 11

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jfl
Posts: 226
Joined: 26 Oct 2012 06:40
Location: Saint Hilaire du Touvet, France
Contact:

How to run Internet Explorer in Windows 11

#1 Post by jfl » 29 Mar 2022 10:37

Microsoft has removed Internet Explorer in the latest releases of Windows 11... Or have they?
Actually after a few days of panic, I understood that they haven't really. What they've changed is that the iexplore.exe program now starts Edge instead of Internet Explorer.
For those of you who have shamefully obsolete company servers that still require Internet Explorer, here's a simple hybrid Batch+Jscript that starts IE11, and optionally opens a URL passed as the first argument:

Code: Select all

@if (@Language == @Batch) @then /* JScript conditional compilation block protecting the batch section */
  @cscript //nologo //E:JScript "%~f0" %* & exit /b &:# Batch command that invokes JScript and exits
@end /* End of the JScript conditional compilation block protecting the batch section */
var ie = new ActiveXObject("InternetExplorer.Application");
if (WScript.Arguments.Length > 0) ie.navigate(WScript.Arguments.item(0));
ie.Visible = true;
WScript.Quit(0);
For example, with that script named ie11.bat in your PATH, run:

Code: Select all

ie11 https://www.dostips.com

atfon
Posts: 178
Joined: 06 Oct 2017 07:33

Re: How to run Internet Explorer in Windows 11

#2 Post by atfon » 30 Mar 2022 12:10

Thank you for the script, Jean-Francois. It is also interesting to see that the MSHTML (Trident) engine for IE 11 will continue to be supported:

https://techcommunity.microsoft.com/t5/ ... -p/2366549

Post Reply