Rex Posted July 3, 2010 Posted July 3, 2010 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 threadBut 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 Can any one help?Cheers/Rex
Rex Posted July 4, 2010 Author Posted July 4, 2010 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 , can any one say why
Rex Posted July 5, 2010 Author Posted July 5, 2010 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 Cheers /Rex
sliceofpie Posted July 29, 2010 Posted July 29, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now