Renaming multiple remote files

Advertisement

bristols
Joined:
Posts:
1

Renaming multiple remote files

I'm having newbie trouble renaming several files at once.

I have a remote directory called "services". In this directory there is a series of HTML files, each with with "_services" at the end of their filename. For example, the list looks something like this:

index_services.html
contact_services.html
projects_services.html

and so on.

I've read the documentation. I understand how I can change the file extension for several files at once using the Moving Remote Files function, explained here:

https://winscp.net/eng/docs/task_move_duplicate#move

So I can do this:
*_services.txt

Fine. But I do not want to change the file extensions, I want to change multiple filenames. I simply want to delete the "_services" part from all the HTML filenames in my remote "services" directory, to leave me with:

index.html
contact.html
projects.html

Please, could someone show me the notation, using my example above? Would it make things easier to do a batch rename locally? Can I do that with WinSCP? If so, how? Thanks for any help.

Greetings, bristols

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Renaming multiple remote files

You cannot do with WinSCP, unless the part of name you want to keep has fixed length. What it does not as I can see.

Reply with quote

Advertisement

You can post new topics in this forum