Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2472
  • Last Modified:

Unattended ftp download of multiple unknown files with Powershell

Back in the old days, I could use ftp mget * to download all files in a directory.  I'd like to be able to do the same thing in powershell, but after googling some, I can't find a very straightforward answer.

What I am trying to do: I am putting together an unattended Powershell script that runs on a schedule to download any new files it might find in a folder on an ftp site.
0
KTN-IT
Asked:
KTN-IT
  • 2
2 Solutions
 
jwarnkenCommented:
The .net framework has some methods you can use. Unfortunately because there is not a powershell command you will have to read the msdn docs to find what will work for you.

Check out these links
http://powershell.com/cs/media/p/804.aspx 
http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.aspx
0
 
KTN-ITAuthor Commented:
Thanks for the links.  I also found these links helpful when you don't know in advance the exact name of the files you will be downloading:

http://poshcode.org/1689
http://poshcode.org/1692
0
 
KTN-ITAuthor Commented:
It's important to be able to enumerate new files on an ftp folder directory.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now