Download Link ermitteln und Datei dowloaden

  • Hallo zusammen

    ich versuche die tägliche Signatur des Antivirus Programs automatisch downzuloaden.

    Der Download funktioniert wenn ich den Dateiname beim InetGet direkt angebe.

    Da der Dateiname jeden Tag wechselt muss ich den Download Link ==> http://download.nai.com/products/datfi…/V3_2691dat.exe jedes mal neu ermittleln .

    Kann mir bitte jemand einen Tip geben wie ich diesen Download Link ermittle ?

    #include <InetConstants.au3>
    #include <MsgBoxConstants.au3>
    #include <WinAPIFiles.au3>


    Local $hDownload = InetGet("http://download.nai.com/products/datfiles/V3DAT/V3_2691dat.exe", "C:\Signatur\V3_2691dat.exe", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)

    ;Wait for the download to complete by monitoring when the 2nd index value of InetGetInfo returns True.
    Do
    Sleep(250)
    Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE)

    Danke und Gruss

    johny

    • Offizieller Beitrag

    Hier mal als Script: