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

Author Message
sivaramanm
[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 https://winscp.net/eng/docs/operation_mask
But the issue with this is, it's starts replacing the existing filename

"C:\Program Files (x86)\WinSCP\WinSCP.com" /timeout=60 /console /command "option batch continue" "option confirm off" "open username:passwd@1.1.1.1 -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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
WinSCP cannot do this automatically. You need to do some post-processing on downloaded files.
_________________
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