Posted: 10 Sep 2009 15:32 | ||
Registered User Currently Offline |
Posts: 2 Join Date: Sep 2009 |
|
I'm trying to get all text files from the ftp in a script, "mget *.txt" runs (200 command okay) but nothing gets downloaded. Do i need to enable this somewhere or isn't this feature supported? |
Posted: 10 Sep 2009 19:15 | ||
Moderator Currently Offline |
Posts: 367 Join Date: Nov 2008 |
|
The scripting language provides a way to do this with much finer control on what files need to be download. Here is an example:
#get the list of files and folders in the current remote directory ftpgetlist remote, @remotelist; foreach $remoteitem in @remotelist begin if $remoteitem.name eq "*.txt" begin ftpdownload file, $remoteitem.name; end end |
Posted: 11 Sep 2009 08:32 | ||
Registered User Currently Offline |
Posts: 2 Join Date: Sep 2009 |
|
What scripting language are you using doing that? Are you confirming that the ftp server does not support wildcards? |
Posted: 12 Sep 2009 23:22 | ||
Moderator Currently Offline |
Posts: 367 Join Date: Nov 2008 |
|
I think I misunderstood your question by assuming that your question was about our ftp automation product which supports the script code above.
For the server, mget with wildcards is supported. However, you may need to use the latest server release since there were some bug fixes related to supporting wildcards. |