Sign in to follow this  
Followers 0
kimurtus

filevercion compare

3 posts in this topic

how can i do version check? on files?, i have two files with this versions and the script doesnt work like i intend

if "3.2.12.1" > "15.8.0.0" Then

ConsoleWrite ("why???"&@lf)

endif

looks like it takes 1 as the vercion and not 15

with other file versions , if the first numer is 9 or under i had no problems with vercion check :/

this is the way i intent to check vercions, probaly im doing it wrong, please help me out

if FileGetVersion ($file1) > FileGetVersion ($file2)

msgbox (0,"",$file2 " is older than "&$file1)

EndIf

thanks

Share this post


Link to post
Share on other sites



how can i do version check? on files?, i have two files with this versions and the script doesnt work like i intend

if "3.2.12.1" > "15.8.0.0" Then

ConsoleWrite ("why???"&@lf)

endif

looks like it takes 1 as the vercion and not 15

See _VersionCompare() in the help file.

Share this post


Link to post
Share on other sites

FileGetVersion is working great...

I think tha the code is failing somewhere, try like this:

$ver1 = FileGetVersion("C:\temp\file1.exe");Change the location of the first file
$ver2 = FileGetVersion("C:\temp\file2.exe");Change the location of the second file
if $ver1 >  $ver2 then ConsoleWrite("File one is greater then file two" & @CRLF)
If $ver2 > $ver1 Then ConsoleWrite("File two is greater then file one" & @CRLF)

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0