Jump to content

_Ftpxxx.au3


Recommended Posts

Hi i needed a way to uploade xx files simultaneous to an ftp server, so i did a search on the forum and found this thread

But i keep getting this error

Y:\AutoIT\_FTPxxx.au3(57,67) : ERROR: $i_p_Check already declared as parameter
    If StringInStr($s_p_PathFile, "*") <> 0 Then Local $i_p_Check = 0
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Y:\AutoIT\_FTPxxx.au3(182,67) : ERROR: $i_d_Check already declared as parameter
    If StringInStr($s_d_PathFile, "*") <> 0 Then Local $i_d_Check = 0
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

when Using *.* in command, so i tried to do a *.pdf knowing that there were several pdf files, but i still get the above code :blink:

Can any one help?

Cheers

/Rex

Link to comment
Share on other sites

Did a bit more looking, and found then _FTpProgressUploade thing, so i tryed to do this code

#include <FTPEx.au3>
#Include <File.au3>
#Include <Array.au3>
; Uploade the damn files to ftp ;-)
    $Open = _FTP_Open('MyFTP Control')

    $Conn = _FTP_Connect($Open, '203.115.80.140', 'tam23664', 'kIxEr7845')

$FileList=_FileListToArray('C:\TEST\') ; Set Counter to -1 corse the loop will return +1
_ArrayDisplay($FileList,"$FileList") ; Test
    If $FileList[0] <= 1 Then
        $i = 1
    Do ; Creating a loop

$Put = _FTP_ProgressUpload($Conn, 'C:\TEST\' & $FileList[$i], 'home/Book/' & $FileList[$i])
        $i = $i + 1
Until $FileList[0] = $FileList[$i]
EndIf

But nothing is been uploaded :blink:, can any one say why

Link to comment
Share on other sites

  • 4 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...