Solved

Unattended ftp download of multiple unknown files with Powershell

Posted on 2011-02-11
3
2,355 Views
Last Modified: 2012-05-11
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
Comment
Question by:KTN-IT
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
jwarnken earned 500 total points
ID: 34880392
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
 
LVL 5

Assisted Solution

by:KTN-IT
KTN-IT earned 0 total points
ID: 34887591
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
 
LVL 5

Author Closing Comment

by:KTN-IT
ID: 34932064
It's important to be able to enumerate new files on an ftp folder directory.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now