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" }}
ftp.dll multiple files and wildcards
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
ftp.dll multiple files and wildcards
The ftp component does not support wildcards at this time.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.