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

Author Message
danleow
[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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
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
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