Welcome Guest.   Make a donation to an author on the site September 02, 2014, 06:58:39 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: EXE File Version  (Read 3317 times)
gameaddict20
Member
**
Posts: 24


Where is my crowbar?

View Profile WWW Give some DonationCredits to this forum member
« on: August 12, 2011, 10:08:34 AM »

Hi,
I require a simple command line executable than when provided with an argument for the path to an exe file it then saves the other version information to a txt file. For example it'll save company, file version, product name, ect ect (everything you find on the version tab when you right click and properties on an exe. Im sure this should be quite simple but using my programming language its imposible and i dont know any other languages. Its for my GameManagerV2 app to improve to exe selection routine. Ive looked all over the internet and cannot find an GNU program that will do this
Thanks for any help
« Last Edit: August 14, 2011, 03:29:34 PM by gameaddict20 » Logged

Check out my large database of free games: http://thefreegamesdb.com
nosh
Supporting Member
**
Posts: 1,385


View Profile Give some DonationCredits to this forum member
« Reply #1 on: August 12, 2011, 10:31:52 AM »

Try http://www.codeproject.com/KB/DLL/showver.aspx
Logged
lanux128
Global Moderator
*****
Posts: 6,088



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: August 12, 2011, 04:39:15 PM »

maybe this can help: How to extract version information using the Windows API.
Logged

skwire
Moderator
*****
Posts: 4,039



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: August 12, 2011, 04:47:41 PM »

@gameaddict20: I have this written so how do you want the resultant text file formatted?
Logged

skwire
Moderator
*****
Posts: 4,039



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: August 12, 2011, 05:23:13 PM »

In the meantime, here you go:  http://skwire.dcmembers.com/apps/snacks/VerDump.zip

Example syntax:  VerDump.exe "c:\windows\notepad.exe" "c:\version.txt"

The following token information is dumped (if present in the exe):

  • File Description
  • File Version
  • Internal Name
  • Legal Copyright
  • Original Filename
  • Product Name
  • Product Version
  • Company Name
  • Private Build
  • Special Build
  • Legal Trademarks

Let me know how it works out for you.  Thanks.
Logged

gameaddict20
Member
**
Posts: 24


Where is my crowbar?

View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: August 14, 2011, 03:29:02 PM »

@lanux128 thanks for the link I found this before but it just confused me

@nosh, thanks for the program its similar to what skwire has made but with some exes it has runtime errors and as i intend to integrate it i dont want ugly errors poping up the enduser wont understand

@skwire, thankyou this is exactly what i was after  Thmbsup
On a side note I'm not sure why but both yours and the other program are struggling obtaining the information from my GameManager exe file, yours just returns empty and the other crashes. Its odd cos the information is accessable from the properties menu, anyway it seems to work fine with all game exe files so its fine. (If you are interested at why it fails with certain exe, ive attached the exe if you want to have a look at it)

Thankyou smiley
Problem Solved

* Data.zip (653.03 KB - downloaded 180 times.)
Logged

Check out my large database of free games: http://thefreegamesdb.com
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.032s | Server load: 0.08 ]