Reputation: 25
We have a list of websites of files to download like these:
ftp://aaa.bbb.ccc/folder1/file0111.dat
ftp://aaa.bbb.ccc/folder2/file0234.dat
ftp://aaa.bbb.ccc/folder5/file1987.dat
...
ftp://aaa.bbb.ccc/folder9/fileXXYY.dat
The file amount is too large, say 1000, we could not select them one by one.
Therefore, we plan to put the websites into a text file, say website.txt
,
then use FilleZilla to download all the dat files with website.txt
.
Can FileZilla do like this?
Thanks a lot!
Kindly, EmanLee
Upvotes: 2
Views: 7095
Reputation: 202330
FileZilla does not support scripting:
Command line option to download file in FileZilla
You can use WinSCP scripting to download list of files.
For example, you can create a batch file (get.bat
) like:
@echo off
winscp.com /command ^
"open ""%1""" ^
"get ""%2""" ^
"exit"
And than you call it like this from another batch file:
@echo off
call get.bat ftp://aaa.bbb.ccc/folder1/ file0111.dat
call get.bat ftp://aaa.bbb.ccc/folder2/ file0234.dat
call get.bat ftp://aaa.bbb.ccc/folder5/ file1987.dat
...
call get.bat ftp://aaa.bbb.ccc/folder9/ fileXXYY.dat
See also Upload to multiple servers / Parametrized script. Though to avoid confusion, note that my answer does not use the technique described in the article.
Upvotes: 0
Reputation: 681
You can make an queue.xml file and Filezilla will download those files in that xml. Here is an example from the Export Method, you would have to import it to Filezilla. File-> Export/Import
<?xml version="1.0" encoding="UTF-8"?>
<FileZilla3 version="3.14.1" platform="windows">
<Queue>
<Server>
<Host>ftp.site.com</Host>
<Port>21</Port>
<Protocol>0</Protocol>
<Type>0</Type>
<User>ftp.site.com|CORP\user</User>
<Pass encoding="base64">XXXX</Pass>
<Logontype>1</Logontype>
<TimezoneOffset>0</TimezoneOffset>
<PasvMode>MODE_DEFAULT</PasvMode>
<MaximumMultipleConnections>0</MaximumMultipleConnections>
<EncodingType>Auto</EncodingType>
<BypassProxy>0</BypassProxy>
<Name>SiteName</Name>
<File>
<LocalFile>C:\XXX.txt</LocalFile>
<RemoteFile>XXX.txt</RemoteFile>
<RemotePath>1 0</RemotePath>
<Download>0</Download>
<Size>635529</Size>
<DataType>0</DataType>
</File>
</Server>
</Queue>
</FileZilla3>
https://trac.filezilla-project.org/ticket/4905
Upvotes: 2