ftp.dll multiple files and wildcards

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
This topic is 15 years and 2 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
gweso
Posts: 1
Last visit: Fri Mar 13, 2009 1:57 am

ftp.dll multiple files and wildcards

Post by gweso »

I can send and receive individual files in powershell with the ftp.dll. I am not able to download mulitple files. How do you put wildcards in for mulitple files?
Here is the code that works for a single file

$ftp = new-object -com Primalscript.FTPTransfer; $ftp.Passive = 1; $ftp.port = $port;
if ($ftp.connect("ftp.sitename.com","username","pw") -eq 0) "cant connect" + $ftp.statuselse{ if($ftp.get("/outgoing/file1.pdf","c:tempfile1.pdf") -eq 0) "error " + $ftp.status else { "download complete" }}
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

ftp.dll multiple files and wildcards

Post by Alexander Riedel »

The ftp component does not support wildcards at this time.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 15 years and 2 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.