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

Lodur

Filter files by filesize and date

Hi there,
I'm currently struggling with a script that should get files from a server which are newer than 4 days and larger than 200 GB.
The script I'm using is like this:
open sftp://user:pw@server.url:12345/path/on/server/
lcd C:\Path\To\Destination
get ./* -resume -preservetime -neweronly -filemask=>200G;>4DS;Subfolder/|*.lck *
close
exit

Unfortunately the script only filters by the date of the files and ignores the size. If I just use either the timestamp or the size, both on it's own are working fine.

How can I persuade WinSCP to use both filters at the same time?

Thanks in advance and stay healthy :)