Topic "Get file and Append custom string to downloaded filename"

Author Message
[View user's profile]

Joined: 2013-11-19
Posts: 5
Is there anyway I can append a custom string while downloading a remote file without replacing any characters in the original file name???

I am already referring this link
But the issue with this is, it's starts replacing the existing filename

"C:\Program Files (x86)\WinSCP\" /timeout=60 /console /command "option batch continue" "option confirm off" "open username:passwd@ -hostkey=*" "get -filemask="">1d"" /log/STATools/Output/NBR/CELL-INFO-*.txt C:\Users\s.mailappan\Documents\Samsung-Sprint\Daily-4G-RAN\RawLogs\AkronLSMR1_* " "exit"

Original FileName: CELL-INFO-20140312_161040.txt
Downloaded & Renamed FileName: AkronLSMR1_0140312_161040.txt

Whats Needed: AkronLSMR1_CELL-INFO-20140312_161040.txt
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
WinSCP cannot do this automatically. You need to do some post-processing on downloaded files.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License