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.
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
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
I believe he was looking for a more automated solution. Also, this wouldn't work on NT/W2K/XP.
Ralph
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.
Trending IT Employment posts
Sort by Trending