Topic "Multiple files in folders and sub folders to one folder"

Author Message
slade2000
[View user's profile]

Joined: 2016-09-21
Posts: 2
Location: Perth
Hi All

I have a script that connects to a FTP host and download all files on the host to a local destination. I do this by using the sync option.

Is there an option to copy all files from all the folders and sub folders to one single folder locally?

Thx
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You can start with this PowerShell script:
https://winscp.net/eng/docs/library_example_recursive_download_custom_error_handling

Modify it to use the same target folder in the GetFiles call.
slade2000
[View user's profile]

Joined: 2016-09-21
Posts: 2
Location: Perth
I will give this a go thx
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License