Topic "How to Get all remote files into a local directory"

Author Message
[View user's profile]

Joined: 2010-11-14
Posts: 1
Is there a way write a script to GET all the remote files (including those in sub directories) into the one local directory (c:\xampp\htdocs).
By the way I do not know these subdirectories name as it is auto generate.

Right now the script that I am using is this, but it also creates the subdirectories in my local drive.

get * c:\xampp\htdocs\

What I want is not create the subdirectories in the local drive but instead have all the files right in to the parent local directory.
Sad Sad Sad
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
There's no example for that. You cannot do this without some scripting. Either to autogenerate WinSCP script or to flatten the directory structure after downloading it to local machine.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License