Sysax Product Forums / Sysax FTP Automation / General Discussion / ftpgetlist
Posted:  02 Dec 2009 21:29
does it work
Posted:  02 Dec 2009 21:31
Are there examples of how this functions
manual is not very clear
Posted:  02 Dec 2009 21:39
NEVER MIND FIGURED IT OUT
#ftprename local, "G:\\Backups\\Harley_75_Live\\testfile.txt", "G:\\Backups\\Harley_75_Live\\Harley_75_Live.txt"; #rename local file
ftpsetpath local, "g:\\";
ftpgetlist local, @my_list; #get the listing of the current local working path
foreach $item in @my_list begin
print "item name is ", $item.name;

end
ftpwildcardmatch "test", "*.txt", "i"; #case insensitive wildcard match
if success eq ftpresult begin
      print "command: ftprunprogram; argument: ", ~my_var, "; status: pass;";
end
Posted:  06 Feb 2010 00:40
Yes, the command lists the contents of the currently selected local or remote folder.
 

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