Mattraks Posted March 2, 2008 Share Posted March 2, 2008 (edited) Delete Edited October 22, 2008 by Mattraks Link to comment Share on other sites More sharing options...
Aceguy Posted March 2, 2008 Share Posted March 2, 2008 then do what with it [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
weaponx Posted March 2, 2008 Share Posted March 2, 2008 Open the help file... FileOpen FileRead FileReadLine #include <File.au3> _FileReadToArray ( $sFilePath, $aArray ) Link to comment Share on other sites More sharing options...
Swift Posted March 2, 2008 Share Posted March 2, 2008 Yes it is... $File = FileOpen("file here.txt", 0) $Line1 = FileReadLine($File, 1) Msgbox(0, "Line 1", "Line 1 Says: "& $Line1) Link to comment Share on other sites More sharing options...
Swift Posted March 2, 2008 Share Posted March 2, 2008 (edited) *Anything Is Possible With AutoIt*You mean...like my updater? go search it: Global Updater, it has the source, it does exactly what you want it to.Link here: http://www.autoitscript.com/forum/index.ph...c=65460&hl= Edited March 2, 2008 by Swift Link to comment Share on other sites More sharing options...
Swift Posted March 2, 2008 Share Posted March 2, 2008 (edited) Look at the source, is uses FileOpen(to open the txt files) and FileReadLine() to read the line, lemme...make it a little more clear. I gave info about the function to the side...hope it helps! #include <GUIConstants.au3> #include <Misc.au3> $Ini = @ScriptDir & "\settings.ini" $File = IniRead($Ini, "Updater", "File", "") $Updatetxt = IniRead($Ini, "Updater", "Updatetxt", "") InetGet($Updatetxt, @HomeDrive & "\temp\" & $File) Global $FileHandle1 = FileOpen($File, 0);here, I am opening the file to be read! Global $FileHandle2 = FileOpen(@HomeDrive & "\temp\" & $File, 0); I am opening the downloaded ver file Global $ver = FileReadLine($FileHandle1, 1); This is telling me the version of the file 1 Global $ver1 = FileReadLine($FileHandle2, 1); This is telling me the version of the file2 _UpdateCheck() #EndRegion Startup Func _UpdateCheck();I am comparing to see which is bigger If _VersionCompare($ver, $ver1) = 0 Then; this is checking the FileReadLine($FileHandle2, 1) Thing to see which is bigger MsgBox(0, "Update", "There Is No Updates At This Time!"); Then displaying a messagebox Exit EndIf If _VersionCompare($ver, $ver1) = 1 Then; same thing here MsgBox(0, "Update", "You Are Using A Better Version Than Whats Available") Exit EndIf If _VersionCompare($ver, $ver1) = -1 Then; and here $Updatemsg = MsgBox(4, "Update", "Update Found! Download Now?") If $Updatemsg = 6 Then _Update() Else Exit EndIf EndIf EndFunc ;==>_UpdateCheck Edited March 2, 2008 by Swift 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