Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Get file and Append custom string to downloaded filename

WinSCP cannot do this automatically. You need to do some post-processing on downloaded files.
sivaramanm

Get file and Append custom string to downloaded filename

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