Mehrere Dateien herunterladen

  • Hallo ich habe folgendes Problem.

    Ich versuche mit einem Scipt mehrere Dateien herunterzuladen was soweit klappt, das nur eine einzige Datei herunter geladen werden kann.
    Sobald ich im Script allerdings mehrere Dateidownloads einhänge, erhalte ich folgende Fehlermeldung.


    Code
    Line 18 (File "C:\\User\Administrator\Desktop\downloadtest.au3)
    
    
    Global Const $sDownloadLink=
    http://mackoy.cool.ne.jp/archives/uchibo10.zip
    Global Const ^ ERROR
    
    
    Error: Can not redeclare a constant

    Dabei spielt es keine Rolle um welchen Download es sich handelt. Es geht jeweils nur einer.

    Ich poste hier einfach mal das Script, und hoffe das mir jemand sagen kann was ich korregieren muss um mehr als einen Download im Script ausführen zu können...

    [autoit]

    #RequireAdmin

    [/autoit][autoit][/autoit][autoit]

    Global Const $sDownloadLink = "http://members.jcom.home.ne.jp/mackoy/archives/a908msfh/bve4.2.1947.25355.zip"
    Global Const $sSavePath = @workingdir & "\bve.zip"

    [/autoit][autoit][/autoit][autoit]

    Local $DownloadFile = InetGet($sDownloadLink, $sSavePath, 1, 1)

    [/autoit][autoit][/autoit][autoit]

    Do
    Sleep(250)
    Until InetGetInfo($DownloadFile, 2)

    [/autoit][autoit][/autoit][autoit]

    If FileExists($sSavePath) Then
    If FileGetSize($sSavePath) = InetGetSize($sDownloadLink) Then
    EndIf
    EndIf

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    Global Const $sDownloadLink = "http://mackoy.cool.ne.jp/archives/uchibo10.zip"
    Global Const $sSavePath = @workingdir & "\benschen.zip"

    [/autoit][autoit][/autoit][autoit]

    Local $DownloadFile = InetGet($sDownloadLink, $sSavePath, 1, 1)

    [/autoit][autoit][/autoit][autoit]

    Do
    Sleep(250)
    Until InetGetInfo($DownloadFile, 2)

    [/autoit][autoit][/autoit][autoit]

    If FileExists($sSavePath) Then
    If FileGetSize($sSavePath) = InetGetSize($sDownloadLink) Then
    EndIf
    EndIf

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    ; ZipTest
    #include <Zip.au3>
    _Zip_UnzipAll(@ScriptDir&"\benschen.zip",@ScriptDir)
    _Zip_UnzipAll(@ScriptDir&"\bve.zip",@ScriptDir)

    [/autoit]