DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: EXE File Version  (Read 10,814 times)

gameaddict20

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

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
Re: DONE: EXE File Version
« Reply #1 on: August 12, 2011, 03:31 PM »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: DONE: EXE File Version
« Reply #2 on: August 12, 2011, 09:39 PM »

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: EXE File Version
« Reply #3 on: August 12, 2011, 09:47 PM »
@gameaddict20: I have this written so how do you want the resultant text file formatted?

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: EXE File Version
« Reply #4 on: August 12, 2011, 10: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

  • Where is my crowbar?
  • Member
  • Joined in 2011
  • **
  • Posts: 30
Re: DONE: EXE File Version
« Reply #5 on: August 14, 2011, 08: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

Original address: https://www.donationcoder.com/forum/index.php?topic=27620.0