Post a reply

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)


Topic review


Re: Remove prefix from filename

There's no way to remove part of file name using WinSCP operation mask.
You have to use some more powerful language.

E.g. you can use WinSCP .NET assembly PowerShell script:
ruban chandar

Remove prefix from filename

I am trying to rename the files while they are getting downloaded from the server to local directory, using operation mask i am able to replace the first two letters of the file with other letters
e.g get S_filename.CSV T:\Ruban\tt*.*
But my actual requirement is I have to remove the first two letters(S_) from the filename while the remaining letters have to be same. How to do this via commandline. please help