ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pdk
pdk
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved