Jump to content

Autoit Ile İnternetten Dosya Kontrol Etme


WolfmanTR_
 Share

Recommended Posts

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 by WolfmanTR_
Link to comment
Share on other sites


#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

Link to comment
Share on other sites

#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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...