Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
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)

Options

Topic review

martin

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.
bristols

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