General discussion

Locked

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.

7 total posts (Page 1 of 1)  
| 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.

Thanks.

Collapse -

Kixtart

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.

Ralph

Collapse -

Some Code

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

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
K
Echo IE Version at least 5.0
one
-----------------------------------------------

Ralph

Collapse -

Here is the solution

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

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

Collapse -

Almost...

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.

Ralph

Collapse -

Well...

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!

Back to IT Employment Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums