[Lazarus] How to get "external" FileVersion
Michael Van Canneyt
michael at freepascal.org
Wed Mar 7 19:37:18 CET 2012
On Wed, 7 Mar 2012, Kjow wrote:
> 2012/3/7 <michael.vancanneyt at wisa.be>:
>> The below unit does what you need.
>>
>> It can be made more simple, I still need to include the unix code in the
>> fileinfo unit.
>>
>> Michael.
>>
>> unit getvers;
>
> Thank you, but your unit extracts the build number from the same
> program where it's included, right?
> I need to extract the build number from an other file (like 'C:\test.exe' ).
>
> Or am I in wrong?
You are right, but you can simply replace Paramstr(0) with any filename.
Michael.
More information about the Lazarus
mailing list