Topic "Custom Commands - insertering date"

Author Message
VelvetJones
[View user's profile]

Joined: 2004-09-24
Posts: 1
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
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`
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License