Remove prefix from filename

Advertisement

ruban chandar
Joined:
Posts:
2
Location:
India

Remove prefix from filename

Hi,
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

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:
https://winscp.net/eng/docs/library_powershell
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum