Topic "How to change download file name with a prefix"

Author Message
sumdumgai
[View user's profile]

Joined: 2010-05-21
Posts: 8
Hi. Am using WinSCP 4.2.7 on XP and am new to the product. I need to create a script that will be a scheduled task that will download some files from an FTP site daily. As the files are downloaded, I want to change the file name from, as an example, "fname.txt" to "mmddyy_fname.txt" where "mmddyy" will be the current date. I've tried using some of the masks, but haven't been able to do an insert of the "mmddyy_" prefix. Any help would be greatly appreciated. Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
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