Sign in to follow this  
Followers 0
Faustvii

Help..

4 posts in this topic

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..

Share this post


Link to post
Share on other sites



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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 :lmao:

#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 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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Liope

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