Filter files by filesize and date

Advertisement

Lodur
Guest

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 :)

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum