I'm running a script every 15mins to pull down files from another server. What I'm finding is WinSCP is not pulling down all the files, it seems that the seconds are not displayed in the remote panel. For instance today a file was created 11.53am and 59 seconds, WinSCP ran at 11.53am and 56 seconds, then ran again at 12.08am and 56 seconds. The problem is it only sees the remote file as 11.53 as below and ignores copying the file.
2017-10-17 12:08:56.164 10-17-17 11:53AM 1966 SHIPMENT_ORD_20171017125346_008758.csv
Is there a way to get WinSCP to look at the seconds of the file properties in the remote window and use this in the script?
The script i'm using is:
# FTP credentials and Server Login
# Local drive selection
# Pull files that have arrived in the last 15mins
get /Receive/ -filemask="SHIPMENT_ORD_*.csv>=15N"