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.
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.
:( :( :(