Solved

List all files and folders on FTP

Posted on 2013-10-30
2
1,478 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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

11 Experts available now in Live!

Get 1:1 Help Now