Solved

List all files and folders on FTP

Posted on 2013-10-30
2
1,615 Views
Last Modified: 2013-11-18
Ive been looking into ways of copying an Entire FTP folder including all the sub-folders and files, however dont know a way of listing all the files and folders in a directory.

My idea was to list all the files in a directory and download them as a function, then recursivly call the function with each one of the sub folders.

Does anyone have a clue how to list files and folders in a FTP folder in Powershell?

Thank you
0
Comment
Question by:tonelm54
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39611259
You may try the PowerShell FTP Client Module from technet script gallery..

http://gallery.technet.microsoft.com/scriptcenter/PowerShell-FTP-Client-db6fe0cb
0
 
LVL 16

Expert Comment

by:AlexPace
ID: 39611848
Does it have to be powershell?  If not, you could use a Robo-FTP script:
WORKINGDIR "c:\local\destination\root\folder"
FTPLOGON "ftp.mydomain.org" /user="UserID" /pw="secret" 
SYNC /subdirs /skip=server 
FTPLOGOFF
EXIT

Open in new window

0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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