viewpoint-particle

Author Topic: Winbatch to find IE version  (Read 2484 times)

jimklein

  • Newbie
  • *
  • Posts: 4
Winbatch to find IE version
« on: August 05, 2013, 08:58:25 am »
Seems silly - But I cannot find the main iexplore.exe so I can figure out what IE version is loaded on computers.
Or - is there a better way.

Thanks!,
Jim

td

  • Tech Support
  • *****
  • Posts: 3210
    • WinBatch
Re: Winbatch to find IE version
« Reply #1 on: August 05, 2013, 01:38:54 pm »
On newer versions of Windows IE is usually located in 'C:\Program Files (x86)\Internet Explorer' or 'C:\Program Files\Internet Explorer'

The easiest method may be to use the WinBatch registry functions to check the registry value

'HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer[version]'
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

td

  • Tech Support
  • *****
  • Posts: 3210
    • WinBatch
Re: Winbatch to find IE version
« Reply #2 on: August 05, 2013, 02:10:11 pm »
This should work on any version of the OS WinBatch supports.

Code: Winbatch
strIeVer = RegQueryValue(@REGMACHINE, 'Software\Microsoft\Internet Explorer[version]')
Message("IE Version", strIeVer)
 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade