FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Version of explorer, chrome, firefox..
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Version of explorer, chrome, firefox..
Posted: Fri Jul 08, 2016 04:57 PM

Hi,

is it possible to get version information on IEXPLORER.EXE, CHROME.EXE,FIREFOX.EXE and all others application ?

I need to know wath release is running of the above application !

(manually, i get this infromation by clicking the the right button of mouse)

tks

Posts: 195
Joined: Sun Jul 22, 2012 07:01 PM
Re: Version of explorer, chrome, firefox..
Posted: Fri Jul 08, 2016 07:19 PM
Assuming you only need the functionality on windows it is very easy to get version info using WMI. The link goes to a non-harbour example, but the concepts are simple to port.

https://blogs.technet.microsoft.com/heyscriptingguy/2005/04/18/how-can-i-determine-the-version-number-of-a-file/

Robb
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: Version of explorer, chrome, firefox..
Posted: Wed Jul 13, 2016 03:19 PM

Many thanks

Here the FWH sample:

obj:=CreateObject("Scripting.FileSystemObject")
cversion:=obj:GetFileVersion("FULL-PATH-EXE-DLL-FILE")

Continue the discussion