IT Employment

General discussion


Determine IE version from command line

By Nonesuch ·
Can anyone tell me how I can determine the current version of Internet Explorer via the Command (or Cmd) prompt, preferably without using any 3rd party utilities? I know that the info is recorded in the Registry & can also be found in the Shdocvw.dll file. Is there any way to parse this info from a batch file?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Batch File

by leehellcat In reply to Determine IE version from ...

How about opening the Readme file in c:\program files\internet explorer

That shows the version at the top of the text file.

Collapse -

No readme, but how about iesetup.cif

by Nonesuch In reply to Batch File

My installation doesn't have a readme in that folder, but buried down in the iesetup.cif file is a variable that has the full version number e.g. Version=5,50,4807,2300. Now I just have to figure out how to parse it.


Collapse -


by JackOfAllTech In reply to Determine IE version from ...

I don't know if you'd consider Kixtart a 3rd party utility but it can read reg values and I'm pretty sure it can use environment variables.


Collapse -

Some Code

by JackOfAllTech In reply to Determine IE version from ...

Here is some sample code:

$VERSION = ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer", "Version")
If @ERROR = 0

@Echo Off
If ErrorLevel 5 Goto OK
Echo IE Version less than 5.0
Goto Done
Echo IE Version at least 5.0


Collapse -

Here is the solution

by GuruOfDos In reply to Determine IE version from ...

You can do this in a batch file:

CD ..

This will invoke the DOS EDITOR. Use the Search...Find function (ALT-S-F) and search for the term


The editor will find the entry and give you a version number. Running 98SE with AOL5 gives the result

VersionNumberIE 5 5.50.4134.0600

Exit the editor.

Complete the batch file with


to return to windows

Collapse -


by JackOfAllTech In reply to Here is the solution

I believe he was looking for a more automated solution. Also, this wouldn't work on NT/W2K/XP.


Collapse -


by GuruOfDos In reply to Almost...

You could 'automate' this by making the batch file more complex.

Using EDIT SYSTEM.DAT followed by parameters would allow the automation of the Editor.

I don't use 2k,NT or XP as they don't allow direct hardware read/writes to I/O addresses, but a friend tried this method on NT and told me it worked for him. Mind you, he wasn't using NTFS!

Related Discussions

Related Forums