I want to search the latest folder and than copy latest file from that folder. I know how to search for latest file in a folder but stuck with how to find latest folder in a folder.
I am trying to transfer file to a FTP location using WinSCP script. Below is my script:
option batch abort
option confirm off
open sftp://XYZ:ABC@123/ -hostkey="ssh-rsa w w w w w w w w w w"
put -latest C:\A\B\2017\* "/ "
exit