Sign in to follow this  
Followers 0
baghenamoth

StringRegExp in .exe to find file version

1 post in this topic

#1 ·  Posted (edited)

Hi guys, sorry to ask you about StringRegExp, I know there is a lot of post about it but I really don't find how to get what I want.

Here is the deal :

I want to get fileversion of the famous putty.

But there is no informations about version in registry or in a file. Worse, it's impossible to find the version of the exe file with FileGetVersion which returns (0.0.0.0) because the author didn't include it.

So I tried by reading the file and I found it. It appears like PuTTY-Release-0.53b in the middle of nul char

I wrote a function which return the version (with raw filereading) but it takes at least 40 secondes. I can't use this because it's destined to be launch at every logon by each user of the domain.

I think there is a very fast way to return the version with StringRegExp but I didn't find it, even with function help and by looking in this forum ! !

Is there anybody which can help me please. I would be very grateful.

Edited by baghenamoth

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0