Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Unattended ftp download of multiple unknown files with Powershell

Posted on 2011-02-11
3
2,375 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
A procedure for exporting installed hotfix details of remote computers using powershell
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

789 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