Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    11

    Program's Own File Version

    How do you find the program's (exe) own file version?

    I tried this, but it didn't work.

    Code:
    version = File.GetVersionInfo(SourceFolder .. "\\cbsoft.exe");
    Label.SetText("Version Label", version);
    I got an error saying that on Line 2, the second argument must be of "type string". What does that mean? Are there any other way? Thanks.

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    File.GetVersionInfo() returns a table so you need to use it like this.

    Code:
    Label.SetText("Version Label", version.FileVersion);
    Look it up in the help file to see all the table vaules.
    Dermot

    I am so out of here

  3. #3
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    You should also change "SourceFolder" to "_SourceFolder" (without the quotes) in your file path.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  4. #4
    Join Date
    Feb 2007
    Posts
    11
    Thanks Dermot, I didn't know it returned a table. I thought it returned a string. And also, Darryl, in my actual project, I got it right, but it's a typo here, when I retyped it. Thanks anyway.

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Unable to find software?
    By NigelLacey in forum Visual Patch 2.0
    Replies: 4
    Last Post: 10-11-2005, 10:35 AM
  3. HOWTO: Detect Acrobat Version
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-22-2002, 04:01 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts