download most recent file
Hello everyone.
I am totally new at WinScp and scripting and I am trying to automate daily download of some files.
Problem is that I only need to download most recent (i.e 1 day old file) file.
I found out that in the latest beta version of WInsCp you can put file mask with Size and Time Constraints to do that https://winscp.net/eng/docs/file_mask
However I can't manage to download only the latest excel file from the server . It keeps downloading all files.
Basically I try to do this :
Thx in advance.
I am totally new at WinScp and scripting and I am trying to automate daily download of some files.
Problem is that I only need to download most recent (i.e 1 day old file) file.
I found out that in the latest beta version of WInsCp you can put file mask with Size and Time Constraints to do that https://winscp.net/eng/docs/file_mask
However I can't manage to download only the latest excel file from the server . It keeps downloading all files.
Basically I try to do this :
winscp
open myssesion
get *.xls<1D
exit
Thx in advance.