2012/3/7 Kjow <[email protected]>:
> 2012/3/7  <[email protected]>:
>> 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?
>
> Thank you,
> Kjow

Also replacing ParamStr(0) with 'C:\test.exe' I get 0.0.0.0 (instead
FileVersion: 1.2.3.4)

With ParamStr(0) I get the build number of the program that launch
this code (of course).

Thank you,
Kjow

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to