Discussion Locked

Determine IE version from command line

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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?

7 replies

by leehellcat

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

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

by nonesuch

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.

Thanks.

by jackofalltech

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.

Ralph

by jackofalltech

Here is some sample code:

IEVersion.KIX
-----------------------------------------------
$VERSION = ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer", "Version")
If @ERROR = 0
Exit $VERSION
EndIf
-----------------------------------------------

tst.bat
-----------------------------------------------
@Echo Off
IEVersion.KIX
If ErrorLevel 5 Goto OK
Echo IE Version less than 5.0
Goto Done
:OK
Echo IE Version at least 5.0
:Done
-----------------------------------------------

Ralph

by guruofdos

You can do this in a batch file:

CD ..
CD WINDOWS
EDIT SYSTEM.DAT

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

VersionNumberIE

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

EXIT

to return to windows

by guruofdos

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!

This discussion is closed to new replies.