RE: Incrementing a build number in PerlApp
by Jan Dubois other posts by this author
Mar 2 2008 1:44AM messages near this date
Re: Incrementing a build number in PerlApp
|
Re: Incrementing a build number in PerlApp
On Sat, 01 Mar 2008, Foo JH wrote:
> Thanks all for helping me with the buildin number thingy. Just 1 more
> question:
> 1. I think I can register the build number, but how do i read it back
> in my script? Sorry, I've pored through the only docs, but can't
> find anything. Maybe I missed it somewhere.
Do you mean the build number of the running executable?
The full path to the current executable is available via PerlApp::exe(),
and you can get version information with Win32::GetFileVersion():
require Win32;
my @version = Win32::GetFileVersion(PerlApp::exe());
print "Version ", join(".", @version), "\n";
Cheers,
-Jan
_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Foo JH
Jan Dubois
Jenda Krynicky
Foo JH
huub
Foo JH
Jan Dubois
Foo JH
Jan Dubois
Foo JH
Jan Dubois
Foo JH
|