Discussion:
EXE build number
(too old to reply)
Mike McDowall
2007-01-31 08:05:08 UTC
Permalink
VFP 5 SP1

When I build an EXE, I always use a version number. I want to extract
that version number into my error log. Is there any way to do that ?

Cheers,
Mike.
Man-wai Chang
2007-01-31 10:03:23 UTC
Permalink
Post by Mike McDowall
When I build an EXE, I always use a version number. I want to extract
that version number into my error log. Is there any way to do that ?
How about logging the date and time of the EXE instead?
--
iTech Consulting Co., Ltd.
Specialized in providing ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852) 2325 3883 Fax: (852)2325 8288
Mike McDowall
2007-02-01 08:05:47 UTC
Permalink
On Wed, 31 Jan 2007 18:03:23 +0800, Man-wai Chang
Post by Man-wai Chang
Post by Mike McDowall
When I build an EXE, I always use a version number. I want to extract
that version number into my error log. Is there any way to do that ?
How about logging the date and time of the EXE instead?
Xie xie / thanks all.

AgeTFileVersion is not in VFP 5, though I have it in 8/9. Pity !

Will run with Man-wai's work-around for now.

Cheers,
Mike.
Man-wai Chang
2007-02-01 11:04:07 UTC
Permalink
Post by Mike McDowall
AgeTFileVersion is not in VFP 5, though I have it in 8/9. Pity !
Will run with Man-wai's work-around for now.
I would log the file size as well ... he he...
How about sampling a few segments of the exe to detect tampering? he he
he...
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.19.2
^ ^ 19:03:01 up 20 days 22:15 0 users load average: 1.10 1.03 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk
Bernhard Herlemann
2007-01-31 10:19:46 UTC
Permalink
Post by Mike McDowall
VFP 5 SP1
When I build an EXE, I always use a version number. I want to extract
that version number into my error log. Is there any way to do that ?
Cheers,
Mike.
Hi Mike,

try this
AGETFILEVERSION(aInfo,"myprog.exe")

? aInfo[4]

Cheers

Bernhard
Jan Bucek
2007-01-31 11:49:17 UTC
Permalink
I use following code (VFP6):

cRelease=chr(255)
IF .not.empty(AGETFILEVERSION(aVerInfo, sys(16, 0)))
cRelease="rel.: "+Alltrim(Transform(aVerInfo[4]))
release aVerInfo
ENDIF
Post by Mike McDowall
VFP 5 SP1
When I build an EXE, I always use a version number. I want to extract
that version number into my error log. Is there any way to do that ?
Cheers,
Mike.
--
Jan Bucek
17. listopadu 2657
544 01 Dvu*r Králové n. L.
www.bucek.info
Continue reading on narkive:
Loading...