WolfmanTR_ Posted May 25, 2014 Share Posted May 25, 2014 (edited) arkadaşlar, örnek olarak : aaa.com\aa\aa.ini dizinindeki aa.ini yi okuyacak (ini olması zorunlu değil, txt,xml de olabilir.) version değeri 1.0 a eşit değil ise , Yeni Bir sürüm bulundu , indirmek istermisinizi diye soru soracak. Eğer evet ise ini içindeki url=aaa.com\aa\aa sayfasını açacak. Bunu yazablir misiniz ? Edited May 25, 2014 by WolfmanTR_ Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted May 25, 2014 Share Posted May 25, 2014 #include <MsgBoxConstants.au3> Example() Func Example() ; Read the file without downloading to a folder. The option of 'get the file from the local cache' has been selected. Local $bData = InetRead("http://www.autoitscript.com/autoit3/files/beta/update.dat") ; The number of bytes read is returned using the @extended macro. Local $iBytesRead = @extended ; Convert the ANSI compatible binary string back into a string. Local $sData = BinaryToString($bData) ; Display the results. MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & $iBytesRead & @CRLF & @CRLF & $sData) EndFunc http://www.autoitscript.com/autoit3/docs/functions/InetRead.htm burdaki örnekten yola çıkarak belki istediğinizi yapabilirsiniz Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted May 25, 2014 Share Posted May 25, 2014 #include <Misc.au3> InetGet("http://www.site.com/guncelleme.ini", @TempDir & "\Dosya.ini") $CurrentVers = "1.0.5" $Vers = IniRead(@TempDir & "\Dosya.ini", "Global","Revision",Default) $Compare = _VersionCompare($CurrentVers, $Vers) If $Compare = 0 Then MsgBox(64,"Divane","Kullandığınız sürüm güncel") ElseIf $Compare = -1 Then MsgBox(64,"Divane","Yeni sürüm çıktı" & @CRLF & "Yeni sürüm : " & $Vers) EndIf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.