Topic "get files from subfolders"

Author Message
[View user's profile]

Joined: 2015-10-26
Posts: 1
Hi There. New to Winscp, and I'm struggling to do something that I believe should be simple. I want to login to my SFTP, go to a specific directory and pull files of XML type (*.XML) from all subfolders. When I run the following I get no files because the files are located in many different subfolders. If I do a "cd" and go directly to a subfolder I get my XML file within that specific subfolder. Not sure what I am missing here.



 # Connect to the host and login using password
 open s
 # Change the remote directory
 cd /ecs-app/dcs/application/mainfolder
 # get all the files in the remote directory and download them to a specific local directory
 get *.XML f:\files\Audit\XMLs\
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia

get * f:\files\Audit\XMLs\ -filemask=*.XML

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License