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

Advertisement

Harsh Narula
Joined:
Posts:
1
Location:
New Delhi, India

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!

Reply with quote

Advertisement

You can post new topics in this forum