Re: Issue on file transferred: 0,
WinSCP cannot select files based on their relative name order (what is what you seem to try to implement).
WinSCP can select files based on their timestamp:
https://winscp.net/eng/docs/file_mask#size_time
Or maybe you actually want:
Though we do not know if your files have timestamps that match the time in their file name.
If you really need to select the files based on a time in the their name, you may be able to make use
For example to upload the file that has the today's time in its name, you can use:
https://winscp.net/eng/docs/scripting#timestamp
WinSCP can select files based on their timestamp:
put -filemask="*>2019-12-17" D:\Extract\TheKEE_*.csv /
https://winscp.net/eng/docs/file_mask#size_time
Or maybe you actually want:
put -filemask="*>today" D:\Extract\TheKEE_*.csv /
Though we do not know if your files have timestamps that match the time in their file name.
If you really need to select the files based on a time in the their name, you may be able to make use
%TIMERSTAMP%
syntax.
For example to upload the file that has the today's time in its name, you can use:
put D:\Extract\TheKEE_%TIMESTAMP#yyyymmdd%.csv /
https://winscp.net/eng/docs/scripting#timestamp