Good Morning All,
I'm using Winscp client to extract .txt files from a remote server to the local server on my network. I get 3 files each month and they are in the format
My code is as below
option batch on
option confirm off
open sftp://<username>:<password>@server -hostkey="ssh-dss xxxxxxxxxxxxxxxx"
option transfer binary
get -preservetime *.txt F:\FTPShare\ftp\
My code is bringing all the .txt files instead of the latest, can anyone please guide me as to the chnages that i need to make to my code to get only the lates?