Faustvii Posted February 5, 2006 Share Posted February 5, 2006 i need help whit this Global $file = FileOpen ( @TempDir & "\check.txt", 1 ) Global $ver = 1.3 $check = FileReadLine ( $file, 1 ) if $ver >= $check Then MsgBox ( 0, "Update", "Your version is up to date" ) Else MsgBox ( 0, "Update", "Your Version is out of date" ) EndIf Check.txt 1.3 it says that the version is up to date even if check.txt is 1.4 or 1.2 can anyone help? i just cant get this work.. Link to comment Share on other sites More sharing options...
Valuater Posted February 5, 2006 Share Posted February 5, 2006 this works... must be the file Global $file = FileOpen ( @TempDir & "\check.txt", 1 ) Global $ver = 1.3 $check = 1.4;FileReadLine ( $file, 1 ) if $ver >= $check Then MsgBox ( 0, "Update", "Your version is up to date" ) Else MsgBox ( 0, "Update", "Your Version is out of date" ) EndIf 8) Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 5, 2006 Share Posted February 5, 2006 (edited) this works... must be the file Global $file = FileOpen ( @TempDir & "\check.txt", 1 ) Global $ver = 1.3 $check = 1.4;FileReadLine ( $file, 1 ) if $ver >= $check Then MsgBox ( 0, "Update", "Your version is up to date" ) Else MsgBox ( 0, "Update", "Your Version is out of date" ) EndIf 8) That doesn´t work for for me, but after changing the 1 to 0 in line Global $file = FileOpen ( @TempDir & "\check.txt", 1 ) it worked #include <file.au3> Global $file = FileOpen ( "C:\temp\check.txt", 0) Global $ver = 1.3 $check = FileReadLine ( $file, 1 ) Msgbox (0, "Titel", $ver & @CRLF & $check) if $ver >= $check Then MsgBox ( 0, "Update", "Your version is up to date" ) Else MsgBox ( 0, "Update", "Your Version is out of date" ) EndIf FileClose($file) So long, Mega Edited February 5, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Faustvii Posted February 5, 2006 Author Share Posted February 5, 2006 (edited) yes i just found out too when i tried whit and ini file.. i changed it to 0 and it worked.. ty for the help Edited February 5, 2006 by Liope 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