Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review

Harsh Narula

Need to move files from one folder to the other, renamed with timestamp.

Hi All,

I need to move files from one SFTP remote location to the other.
I have been able to do that using the mv command.

However, I'm facing a problem. The move command is unable to overwrite files if by any chance I have files which are coming with same names. Is it possible to anyway, add a timestamp in the filename, this can help me remove any duplicate file-name issues.

PS: It has to be a solution through WinSCP scripting only. I cannot use .net/powershell.

Thanks in advance!