Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

scottl33

syntax for recursive get

Thanks gman804 and prikryl. I appreciate the help. :)
martin

Re: what is the syntax for recusive get?

get -filemask=*.txt /Share/*
gman804

re: what is the syntax for recusive get?

try using a synchronize local with a filemask. local says synch the local drive to match the remote, but don't push anything back to the remote

synchronize local c:\temp\winscp\files\ /Share/ -filemask="*.txt"

if you want all of the files, leave off the filemask
scottl33

what is the syntax for recusive get?

Hello,

I hate to ask this as there is a plethora of documentation available on the 'get' command as well as about masks and path masks. Unfortunately, I haven't managed to perform a recursive get. Can someone help with the syntax?

On a Windows XP box, my directory structure looks like this:

.../Share/Client1/file.txt
.../Share/Client2/file2.txt

I am using WinSCP and a script file. I wish for the script file to begin with the 'Share' folder and recursively download all the files that end in "*.txt" without knowing what the subdirectories are.

I'm trying different syntax such as:
get *.txt
get Share*.txt
get mask /Share/*/*.txt
get -filemask /Share/*/*.txt
get -filemask "/Share/*/*.txt" c:\temp\winscp\files\

Nothing works so far. Can someone help this newbie?

thanks!