MPlb Posted December 6, 2007 Share Posted December 6, 2007 (edited) I want to write something that checks the version number of a file that is already present on a PC. If it is an old version I want to then copy the new version over the top of it. I can get the version number with the FileGetVersion() command but it returns a value in the format 1.2.3.4. For example 6.0.84.50. How can I accurately compare two versions numbers? Will I have to split it up into the four segments and check each one in turn? Any ideas? Thanks Edited December 6, 2007 by MPlb Link to comment Share on other sites More sharing options...
herewasplato Posted December 6, 2007 Share Posted December 6, 2007 ...Will I have to split it up into the four segments and check each one in turn?...Yes.See here: http://www.autoitscript.com/forum/index.ph...showtopic=20719 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
weaponx Posted December 6, 2007 Share Posted December 6, 2007 (edited) Oooo these requests are always fun. I put a version up that allows for any number of octets and letters in the version number as well:#418119 Edited December 6, 2007 by weaponx Link to comment Share on other sites More sharing options...
herewasplato Posted December 6, 2007 Share Posted December 6, 2007 Oooo these requests are always fun. I put a version up that allows for any number of octets and letters in the version number as well:#418119Nice - I had missed that one.... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now