Topic "Remove prefix from filename"

Author Message
ruban chandar
[View user's profile]

Joined: 2014-06-19
Posts: 2
Location: India
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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
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:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License