Jump to content
Sign in to follow this  
zelles

FTPEx _FTP_DirGetContents - Download Folder

Recommended Posts

zelles

Using the FTP FTPEx.au3 makes communicating with FTP a breeze. With great functions like _FTP_FileGet, _FTP_FilePut, and _FTP_DirPutContents, you can upload and download with ease. But what about the much needed ability to download a folder with a simple _FTP_DirGetContents function? Well I put together a function that will download a folder with ease...

_FTP_DirGetContents Function:

Func _FTP_DirGetContents($oConn, $opath, $olocal, $orec)
    If Not FileExists($olocal) Then DirCreate($olocal)
    If StringRight($opath, 1) <> "/" Then $opath &= "/"
    If $orec == 1 Then
        Local $ocurrent = _FTP_DirGetCurrent($oConn)
        _FTP_DirSetCurrent($oConn, $opath)
        Local $afolders = _FTP_ListToArray($oConn, 1)
        _FTP_DirSetCurrent($oConn, $ocurrent)
        For $o = 1 To $afolders[0]
            If $afolders[$o] == "." Or $afolders[$o] == ".." Then ContinueLoop
            If Not FileExists($olocal & "\" & $afolders[$o]) Then DirCreate($olocal & "\" & $afolders[$o])
            _FTP_DirGetContents($oConn, $opath & $afolders[$o], $olocal & "\" & $afolders[$o], $orec)
        Next
    EndIf
    Local $hFTPFind
    Local $aFile = _FTP_FindFileFirst($oConn, $opath, $hFTPFind)
    While 1
        _FTP_FileGet($oConn, $opath & $aFile[10], @ScriptDir & "\tmpdata\" & $aFile[10])
        $aFile = _FTP_FindFileNext($hFTPFind)
        If @error Then ExitLoop
    WEnd
    _FTP_FindFileClose($hFTPFind)
EndFunc

Example Usage:

#include <FTPEx.au3>

If Not FileExist(@ScriptDir & "\ftptemp") Then DirCreate(@ScriptDir & "\ftptemp")

$dir_local = @ScriptDir & "\ftptemp"
$dir_remote = "/"

Local $iOpen = _FTP_Open('MyFTP Control')
Local $iConn = _FTP_Connect($iOpen, "YourFTPServer", "YourUsername", "YourPassword")
_FTP_DirGetContents($iConn, $dir_remote, $dir_local, 1)
_FTP_Close($iConn)
_FTP_Close($iOpen)

Function Call Explanation:

_FTP_DirGetContents($oConn, $opath, $olocal, $orec)

  • $oConn: session handle as returned by _FTP_Connect.
  • $opath: The remote folder to download
  • $olocal: The local folder to download to.
  • $orec: set to 1 to download folder and subfolders. Set to 0 for non recursive.

Enjoy

  • Like 1

Share this post


Link to post
Share on other sites
MadeININDIA

Hi ,

I'm getting error in line : _FTP_FileGet($oConn, $opath & $aFile[10], @ScriptDir & "tmpdata" & $aFile[10])

 : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:

_FTP_FileGet($oConn, $opath & $aFile[10], @ScriptDir & "tmpdata" & $aFile[10])
_FTP_FileGet($oConn, $opath & ^ ERROR
 
Pls help !

Share this post


Link to post
Share on other sites
SmOke_N

Put this before _FTP_FileGet and post the whole content of the console after it crashes.

ConsoleWrite("There are " & (UBound($aFile) - 1) & " available indexes for this array, you are trying to use 10.")

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
MadeININDIA

Hi ,

I'm getting this console message :

 
There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.
 
Only folders are copying as empty folders .  Files are not getting transferred :(>
Edited by ParkaviP

Share this post


Link to post
Share on other sites
MadeININDIA

 

From the above image 26 files are there,but only transferring folders as empty.
as seen below:

post-89362-0-49231500-1421061855_thumb.p

post-89362-0-14570600-1421061867_thumb.p

Edited by ParkaviP

Share this post


Link to post
Share on other sites
ViciousXUSMC

Hi ,

I'm getting error in line : _FTP_FileGet($oConn, $opath & $aFile[10], @ScriptDir & "tmpdata" & $aFile[10])

 : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:

_FTP_FileGet($oConn, $opath & $aFile[10], @ScriptDir & "tmpdata" & $aFile[10])
_FTP_FileGet($oConn, $opath & ^ ERROR
 
Pls help !

​Same error I got when trying to use it.

But I agree this feature would make sense to be in the FTPEx.au3 and is exactly what I am trying to do right now for a project. 

 

There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 11 available indexes for this array, you are trying to use 10.There are 5 available indexes for this array, you are trying to use 10."C:\Users\frpatrmo\Desktop\Get Map Update\FTPDirGet.au3" (19) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
_FTP_FileGet($oConn, $opath & $aFile[10], @ScriptDir & "\tmpdata\" & $aFile[10])
_FTP_FileGet($oConn, $opath & ^ ERROR
Edited by ViciousXUSMC

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • Sally1801
      By Sally1801
      Hello,
      i need help in deleting files from a server. The function "_FTP_DirDelete" only deletes a directory when its empty. I need to delete a non empty directory. I also can not delete the files in this directory first, because the files are PAG and DIR files in a .DAV directory and FTPEx.au3 doesnt like a directory starting with a ".".
      Any ideas?
      Thx, Sally
    • nacerbaaziz
      By nacerbaaziz
      Hello
      Can we pause and resume the download in the InetGet function?
      If is possible, what is the solution please?
      I used this code To manage the download

      #include <INet.au3> func _downloader($name, $linc, $filepath, $RTLF = false, $link = false) global $downloader = GUICreate("downloader", 400, 200, -1, -1, $WS_CLIPCHILDREn, $RTLF, $link) global $path = $filePath $labelTxt = GUICtrlCreateLabel("downloading " & $name, 50, 10, 200, 20) global $labelTxt0 = GUICtrlCreateLabel("downloaded size 0 MB " & "OF 0 MB", 50, 60, 300, 20) global $Progress = "" global $sText = ""     For $i = 1 To Random(5, 20, 1) ; Return an integer between 5 and 20 to determine the length of the string.         $sText &= Chr(Random(65, 122, 1)) ; Return an integer between 65 and 122 which represent the ASCII characters between a (lower-case) to Z (upper-case). next global $labelTxt2 = GUICtrlCreateInput("0%", 50, 80, 50, 20) _GUICtrlEdit_SetReadOnly(-1, true) GUIStartGroup("") global $beep = GUICtrlCreateCheckBox("use the progress beep notification", 150, 120, 200, 20) GUIStartGroup("") $button = GUICtrlCreateButton("Cancel', 130, 150, 180, 25, 0x01) $iIndex = 0 global $Target global $url GUIStartGroup("") global $Progress = GUICtrlCreateProgress(50, 90, 150, 20) global $Target = $filepath global $url = $linc global $path = $filepath global $hDownloadNo = _RSMWare_GetData($url, $Target) global $status = false AdlibRegister("SetProgress") global $onprogress = false, $curent = false GUISetState(@sw_Show) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $button $asc = MsgBox(4132,"exit download?","if you click yes the downloading will be cancel, do you want to cancel it ?") if $asc = 6 then AdlibUnRegister("SetProgress") GUIDelete() If $hDownloadNo <> 0 Then InetClose($hDownloadNo) exitLoop endIf EndSwitch if $status = -1 then $status = 0 $hDownloadNo = _RSMWare_GetData($url, $Target) $onprogress = false $curent = false elseIf $Status = 1 then $status = $path GUIDelete() AdlibUnRegister("SetProgress") exitLoop endIf WEnd return $status endFunc Func _RSMWare_GetData($url, $Target) Local $hDownload = InetGet($url, $Target, 1, 1) Return $hDownload EndFunc ;==>_RSMWare_GetData Func SetProgress() Local $state If $hDownloadNo <> 0 Then $state = InetGetInfo($hDownloadNo) If @error = 0 Then $infor = "downloaded size " & Round(Execute(InetGetInfo($hDownloadNo, $INET_DOWNLOADREAD) / 1048576), 2) & " MB of " & Round(Execute(InetGetInfo($hDownloadNo, $INET_DOWNLOADSIZE) / 1048576), 2) & " MB " $onprogress = Round(Ceiling(($state[0] / $state[1]) * 100)) if not (InetGetInfo($hDownloadNo, $INET_DOWNLOADSIZE) = 0) then if $onProgress <= 0 then $onProgress = 0 GUICtrlSetData($Progress, $onProgress) GUICtrlSetData($labelTxt0, $infor) GUICtrlSetData($labelTxt2, $onProgress & "%") if _isChecked($beep) then if $onprogress > $curent then beep((100 + $onprogress * 20), 100) $curent = $onprogress endIf endIf endIf If $state[2] Then If $state[3] Then InetClose($hDownloadNo) $status = 1 else InetClose($hDownloadNo) $status = -1 endIf endIf EndIf endIf EndFunc ;==>SetProgress
    • nacerbaaziz
      By nacerbaaziz
      Hello
      I have a query please
      It is about windows file explorer
      If i design a tool in autoit language to delete files for example
      and i  added it in the context menu in File Explorer
      If i right-click on any file And you choose the tool, it will be get the path of the selected file or folder
      The problem here is
      If i select a set of files or folders
      it only detect the first one
      The code that i  used is
      if $CMDLine[0] = 0 then
      msgBox(16, "error", "you don't selecte any files")
      exit
      else
      for $i = 1 to $CMDLine[0]
      msgBox(0, "files", $CMDLine[$i]
      next
      endIf
      exit
    • tintin92
      By tintin92
      Hello,

      How can I automatically download a list of zip files, like the ones in the quote, using a AutoIt script?
      Is it possible with AutoIt script?
       
    • CharlieH
      By CharlieH
      Hi,
       
      I have written a small script to read a file from an FTP server and check its contents. This can be re-run by the press of a button, however, if the file is deleted from the ftp server between runs (with the .exe still live), the file is still "read" and written locally, which then passes the check.
       
      If I run it initially without the file, it correctly fails and pops up my error message, but if the file is then added, it then seemingly gets cached (or similar) so that the app then always reports a success.
       
      The below code snippet is just the function run when the "test" button is pressed. It includes a load of debug message boxes, and from that I think I've gathered a few (possibly) interesting/relevant things:
      $Open and $Conn are 8 byte values, which increments (not by 1) when the FTP connection is not closed, but if the connection is closed, they stick at the value (presumably windows can re-use that session id if it's been closed e.g:
      1st run (file not present) $Open -> 0x00CC0004 $Conn -> 0x00CC0008
      2nd run (file not present) $Open -> 0x00CC0010 $Conn -> 0x00CC0014
      3rd run (file now present) $Open -> 0x00CC001C $Conn -> 0x00CC0020
      4th run (file still present) $Open -> 0x00CC001C $Conn -> 0x00CC0020
      $Ftp = _FTP_FileGet.... returns a 1 when file not present (in a run after it was present) and "test_transfer.txt" does get created and does contain the correct string This is the key bit I dont understand, I dont know how/where it is getting the data to write this file when it literally no longer exists on the target FTP server...
      resetting every variable used in the function each time it's run does work (in that they become 0), but it doesn't affect the putcome I had thought perhaps some key values were being stored in the variables, but this doesn't seem to be the case
       
       
      Is there any concept of clearing a cache when closing an ftp session? Or deleting any unknown temporary files windows might make?
       
      Thanks all
       
      Func Transfer() Local $connected = 0 $Ftpp = 0 ;Trying to reset these every time function is called $file = 0 $Open = 0 $Conn = 0 $Ftpc = 0 ;Make a new "connecting..." window so that the user has feedback that a transfer is attempting to take place ;Otherwise it just runs in the background and there's no indication its doing anything $connection_window = GUICreate ("Ethernet Switch Test" , 300 , 160 , -1 , -1 , -1 , -1 , 0) GUISetBkColor(0xFFFFFF) GUISetFont(10 * _GDIPlus_GraphicsGetDPIRatio()[0], 400, Default, "Sans Serif") $connecting_label = GUICtrlCreateLabel("Connecting to board...", 0, 25, 300, -1, $SS_Center, "") GUISetState(@SW_SHOW, $connection_window) Sleep(100) ;Connect ;MsgBox(0, "DEBUG", "1" & $Conn) While $connected = 0 $Open = _FTP_Open($count) ;MsgBox(0, "DEBUG", "open " & $Open) $Conn = _FTP_Connect($Open, $server, $username, $password) ;MsgBox(0, "DEBUG", "2" & $Conn) If $Conn = 0 then Local $retry = Msgbox(65, 'FTP Transfer', 'Connection failed' & @CRLF & "Retry?") If $retry = 2 Then MsgBox(0, "FTP Transfer", "Operation aborted") GUISetState(@SW_HIDE, $connection_window) Return EndIf Else $connected_label = GUICtrlCreateLabel("Connected!", 0, 45, 300, -1, $SS_Center, "") $connected = 1 MsgBox(0, "DEBUG", "3" & $connected) Sleep(100) endIf WEnd $transfering_label = GUICtrlCreateLabel("Reading file....", 0, 45, 300, -1, $SS_Center, "") ;Read file from server ;MsgBox(0, "DEBUG", "5" & $Ftpp) ;MsgBox(0, "DEBUG", "flie " & $file) $Ftpp = _FTP_FileGet($Conn, 'test/test.txt', 'test_transfer.txt') ;MsgBox(0, "DEBUG", "6" & $Ftpp) If ($Ftpp) then $transfered_label = GUICtrlCreateLabel("Transfered, checking...", 0, 65, 300, -1, $SS_Center, "") ;MsgBox(0, "DEBUG", "flie " & $file) $file = FileRead("test_transfer.txt") ;MsgBox(0, "DEBUG", "flie " & $file) If Not StringInStr($file, 'this is a test string 12345') Then MsgBox(0, "File check", "Received file incorrect, test failed!") GUISetState(@SW_HIDE, $connection_window) Return Else $tested_label = GUICtrlCreateLabel("Tested and Passed!", 0, 85, 300, -1, $SS_Center, "") $Ftpc = _FTP_Close($Open) ;MsgBox(0, "DEBUG", "close" & $Ftpc) ;$count = $count+1 $ok_button = GUICtrlCreateButton("OK", 125, 105, 50, -1) While 1 Local $pressed = GUIGetMsg() If ($pressed = $ok_button) Then FileDelete("test_transfer.txt") GUISetState(@SW_HIDE, $connection_window) ;$connection_window = 0 Return EndIf WEnd EndIf Else MsgBox(0, "Transfer", "Could not read file " & @error) GUISetState(@SW_HIDE, $connection_window) Return EndIf EndFunc  
×