Reply to Thread

Post a reply to the thread: Comparing file versions?

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 04-01-2004, 05:14 AM
    linder

    Re: Comparing file versions?

    Yes, this is possible.

    Set Variable %FILE1% to FileInfo(File Version) of c:\file1.exe
    Set Variable %FILE2% to FileInfo(File Version) of c:\file2.exe

    Set Variable %RESULT% to Version String Comparison("%FILE1%", "%FILE2")

    ! 1 means File Version 1 > File Version 2
    ! 2 means File Version 1 < File Version 2
    ! 0 means File Version 1 = File Version 2
    If %RESULT% Equals "1" Then
    Do this
    Else
    Do This
    End
  • 03-31-2004, 11:42 PM
    Unregistered

    Comparing file versions?

    Can I do this in SB5?

    IF FileVersionFile1 < FileVersionFile2 THEN
    DO THIS
    ELSE
    DO THIS
    END

Posting Permissions

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