Solved

List all files and folders on FTP

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Start-VM 3 18
Best Group or Permissions for Domain User to run Scheduled Task 44 62
send only last errors on log files 4 22
..ignore the Question 1 11
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
Set OWA language and time zone in Exchange for individuals, all users or per database.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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