ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
If I have 1 file on C:\MyDir\MyFile.txt and upload it to the ftp server using the command:
[scriptftp="sync.ftp"]SYNC("C:\MyDir","/MyDir",UPLOAD)[/ScriptFTP]

Then the file on the ftp server gets the current time and date.
How do I upload a file and give it the time and date from the souce directory?

The file date and time of C:\MyDir\MyFile.txt is 24-12-2004 23:59.
That should also be the time on the ftp server, but it is not. How do I do that?
The uploaded file will have the time set to the time when it was uploaded. The FTP protocol does not have a standard way to set the time of the files and because of that ScriptFTP cannot set the date to the correct one. But still with that drawback, ScriptFTP manages to synchronize the files correctly.

If anyone has any suggestions or a better approach to handle this in ScriptFTP please post here. ;)