Easy Pass to Secure File Transfer
TM
»User: »Password:   Remember Me? 
Sysax Product Forums / Sysax Multi Server / Bugs and Feature Requests / wildcards
Posted:  10 Sep 2009 15:32
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
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
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
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.
 

Copyright © 2008 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0