Custom Commands - insertering date

Advertisement

VelvetJones
Joined:
Posts:
1

Custom Commands - insertering date

Hi, I've made a custom command that makes a backup copy of the file in question. Is there anyway to have it append the file with the date for example:

test.txt

would get a backup copy

test.txt.20040924

?

Your response is greatly appreciated.

James

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Custom Commands - insertering date

WinSCP cannot do this, but you probably can achive the same result using shell function.

Something like following command can help:

cp ! /backup/!`date +%Y%m%d`

Reply with quote

Advertisement

You can post new topics in this forum