topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 11:19 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: EXE File Version  (Read 8494 times)

gameaddict20

  • Member
  • Joined in 2011
  • **
  • Posts: 30
  • Where is my crowbar?
    • View Profile
    • Donate to Member
DONE: EXE File Version
« on: August 12, 2011, 10:08 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 PM by gameaddict20 »

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
    • View Profile
    • Donate to Member
Re: DONE: EXE File Version
« Reply #1 on: August 12, 2011, 10:31 AM »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: DONE: EXE File Version
« Reply #2 on: August 12, 2011, 04:39 PM »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: EXE File Version
« Reply #3 on: August 12, 2011, 04:47 PM »
@gameaddict20: I have this written so how do you want the resultant text file formatted?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: EXE File Version
« Reply #4 on: August 12, 2011, 05:23 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.

gameaddict20

  • Member
  • Joined in 2011
  • **
  • Posts: 30
  • Where is my crowbar?
    • View Profile
    • Donate to Member
Re: DONE: EXE File Version
« Reply #5 on: August 14, 2011, 03:29 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 :)
Problem Solved