I have scripted this out and everything works fine at first. The files are brought over from the SFTP and the date they were created on the SFTP is replicated on my home machine. For instance a file from a customer that was sent on 3.14.14 would be just that. HOWEVER and this is a MAJOR however. When I come back after a day or so and look at the file.. I see the date that I brought over the file instead.. Which makes my head hurt.. I need to absolutely keep the timestamp from SFTP so I know when the client sent the file.. I dont care at all about when I pulled the file over..
I am manually running a batch script since Winscp has a heart attack when used with Windows Task Scheduler... Here is a look at the text document. Mind you it works great just somehow the stamps are updated magically when I come back after the work day. No additional scripts running, only me on computer.. it is turned off daily (issue?)
Synchronize -preservetime -filemask="*.xls;*csv;*.pgp;*.xlsx;*.txt;*gpg" local "C:example" "/sftpexample/"
Are there additional setting in Winscp itself that could help resolve this issue???