i have tried but cant get filemask to work

Advertisement

tpoddar
Joined:
Posts:
1
Location:
London

i have tried but cant get filemask to work

hi,
I have a shared drive that I am using to upload files.
My source directory is \\fil\prod\fsroot and I am uploading to the root of my ftp server.
My requirement is that I need all the *.txt and * .trg file from any subdirectories that have that name tp or aa. SO I have written the following but the script runs and nothing happens :(
can you please help. I also have a requirement that the files should be less than 10KB but nt sure how to get that to work. WHat am I doing wrong below
lcd \\fil\prod\fsroot
cd /
put -filemask="*.txt; *.trg; */tp/; */aa/" *
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,228
Location:
Prague, Czechia

Re: i have tried but cant get filemask to work

That's not really easy with WinSCP file mask.
Something like this might work:
put -filemask="*/tp/*.txt; */tp/*.trg; */aa/*.txt; */aa/*.trg" *

Reply with quote

Advertisement

You can post new topics in this forum