Solved

List all files and folders on FTP

Posted on 2013-10-30
2
1,741 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
[X]
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
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

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 …
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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