what is the syntax for recusive get?

Advertisement

scottl33
Guest

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!

Reply with quote

Advertisement

gman804
Joined:
Posts:
6
Location:
NJ

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: what is the syntax for recusive get?

get -filemask=*.txt /Share/*
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum