Posted: 2014-03-13 17:47
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 http://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:email@example.com -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
Location: Prague, Czechia
WinSCP cannot do this automatically. You need to do some post-processing on downloaded files.
You can post new topics in this forum
And it's free!