Topic "Remove prefix from filename"

Author Message
ruban chandar
[View user's profile]

Joined: 2014-06-19
Posts: 2
Location: India
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
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:
http://winscp.net/eng/docs/library_powershell
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License