SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: File Version

  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    File Version

    User Harvindar S. Devgan (hsdevgan@yahoo.com) posted:

    Does anyone have a procedure/script that will return the file version?

    Thanx in advance.
    __________________________________________________ _______


  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Markus Klostermann (Markus.Klostermann@de.adp.com) posted:

    Mhat do you mean by file version?

    Markus


    ---

  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Harvindar S. Devgan (hsdevgan@yahoo.com) posted:

    Window API function : GetFileVersionInfo
    (GetFileVersionInfo extracts the version information resource stored inside
    a 32-bit executable-type file.)

    __________________________________________________ _______


  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Gustavo Rojas (gustavo.rojas@greatplains.com) posted:

    You can try the following APIs (I'm not sure if they work every file type,
    but it's worth a shot): http://www.vbapi.com/ref/g/getfileversioninfo.html http://www.vbapi.com/ref/g/getfileversioninfosize.html http://www.vbapi.com/ref/v/verqueryvalue.html


    Gustavo Rojas
    ____________________________________
    Microsoft Great Plains Business Solutions
    Quality Assurance Analyst
    Solomon Platform Services Group
    ---

  5. #5
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Powers, Richard J. (PowersR@genrad.com) posted:

    Here is a example function using filesystem object.

    '************************************************* **************************
    ***
    ' Function fnGetFileVersion
    '
    ' Purpose: Version information of File
    '
    ' Parameters: sFileName - String - full path of the file
    '
    ' Return Value: string - Version information if available.
    ' string - "Error" if problem in FileObject
    '
    ' Use filesystemobject to obtain version, much shorter code than API method.
    '************************************************* **************************
    ***
    Function fnGetFileVersion(sFileName as string)as string
    Dim objFSO As object
    Dim objFile as object

    on error GoTo ErrorHandler

    set objFSO = CreateObject("Scripting.FileSystemObject")

    fnGetFileVersion = objFSO.GetFileVersion(sFileName)
    Exit Function

    ErrorHandler:
    SQALogMessage sqaFail, "Error FileSystemObject " & sFileName, "Error " &
    Err & ": " & Error$
    fnGetFileVersion = "Error"
    End Function 'fnGetFileVersion
    '************************************************* **************************
    ***
    Richard


    ---

  6. #6
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Tom Ba (tombasay@hotmail.com) posted:

    Uh-oh.
    Harv already answer own question.

    Pls disregard the following:

    Tomba
    go here to get "GetFileVersion.sbh"

    __________________________________________________ _______________

  7. #7
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Harvindar S. Devgan (hsdevgan@yahoo.com) posted:

    Tomba.... no I haven't resolved my issue yet.

    The example at 'www.vbapi.com' uses an invalid (for SQABAsic) data type
    'byte' for Win API fn GetFileInfo, so I am stuck there.

    I am currently experimenting Richard's code.

    Thanx for the help so far.

    __________________________________________________ _______


  8. #8
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Tom Ba (tombasay@hotmail.com) posted:

    Tomba code works
    for file info.

    You just need the sbh/sbl file
    that goes along with it.

    I'll zip it to you.

    Tomba

    ----Original Message Follows----
    From: "Harvindar S. Devgan" <hsdevgan@yahoo.com>
    Reply-To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    Subject: Re: File Version
    Date: Fri, 20 Apr 2001 11:59:46 -0400

    Tomba.... no I haven't resolved my issue yet.

    The example at 'www.vbapi.com' uses an invalid (for SQABAsic) data type
    'byte' for Win API fn GetFileInfo, so I am stuck there.

    I am currently experimenting Richard's code.

    Thanx for the help so far.

    __________________________________________________ _______________

  9. #9
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Harvindar S. Devgan (hsdevgan@yahoo.com) posted:

    Thanx Tomba.

    ----- Original Message -----
    From: "Tom Ba" <tombasay@hotmail.com>
    To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    Sent: Friday, April 20, 2001 12:06 PM
    Subject: Re: File Version

    __________________________________________________ _______


  10. #10
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: File Version

    User Harvindar S. Devgan (Paul_Downes@providian.com) posted:


    Tomba's function library can be found n the RationalUsers website -
    http://groups.yahoo.com/group/Ration...leVersion2.zip

    Cheers . . . Paul
    "Tom Ba" <tombasay@hotmail.com> on 04/20/2001 09:06:45 AM

    Please respond to "SQA Suite Team Test Users"
    <sqa-suite-users@lyris.dundee.net>

    To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    cc:
    Subject: Re: File Version


    Tomba code works
    for file info.

    You just need the sbh/sbl file
    that goes along with it.

    I'll zip it to you.

    Tomba

    ----Original Message Follows----
    From: "Harvindar S. Devgan" <hsdevgan@yahoo.com>
    Reply-To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    Subject: Re: File Version
    Date: Fri, 20 Apr 2001 11:59:46 -0400

    Tomba.... no I haven't resolved my issue yet.

    [snipped]

    ------------------------------------------------------------------------------
    Warning : The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this message and then delete it from your computer. All e-mail sent to this address will be received by the Providian Financial corporate e-mail system and is subject to archiving and review by someone other than the recipient.

    ================================================== ============================


    ---

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.64%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:46 AM.

Copyright BetaSoft Inc.