Jump to content
Sign in to follow this  
Rex

_Ftpxxx.au3

Recommended Posts

Rex

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

Share this post


Link to post
Share on other sites
Rex

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

Share this post


Link to post
Share on other sites
Rex

Isn't there a way to do multiply uploades to an ftp server ?

Seems like i have looked every where, and haven't found any :blink:

Cheers

/Rex

Share this post


Link to post
Share on other sites
sliceofpie

I'm looking for this as well. Selecting files and folders and then uploading them to an FTP site. I checked out a post from '06 that was referring to multi-threading. I'll paste it in here once I find it again.

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  

×