How do delete a specific phrase across multiple file names?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
michaelbeijer
Posts: 57
Joined: 19 Apr 2014 00:27
Location: Hastings, East Sussex, UK.
Contact:

How do delete a specific phrase across multiple file names?

Post by michaelbeijer »

OK, this is probably a really stupid question, but how do I rename a bunch of files in a folder.

I have a bunch of files like this:

_CELEX_2013_en-nl_Science_education_culture.tmx
_CELEX_2013_en-nl_Social_policy.tmx
_CELEX_2013_en-nl_Taxation.tmx
_CELEX_2013_en-nl_Transport.tmx
etc.

I want to delete "_en-nl" from each file name.

Resulting in:

_CELEX_2013_Science_education_culture.tmx
_CELEX_2013_Social_policy.tmx
_CELEX_2013_Taxation.tmx
_CELEX_2013_Transport.tmx

Directory Opus has this great Rename dialogue: https://dl.dropboxusercontent.com/u/680 ... y-Opus.png
Is there anything like that in XYplorer?
Translator & Terminologist (http://beijer.uk/)
(System: Windows 7, 64-bit, 27" monitor)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How do delete a specific phrase across multiple file nam

Post by highend »

Easiest way:

Right click on all selected files, Rename Special - Search And Replace...

Code: Select all

_en-nl_/_
One of my scripts helped you out? Please donate via Paypal

michaelbeijer
Posts: 57
Joined: 19 Apr 2014 00:27
Location: Hastings, East Sussex, UK.
Contact:

Re: How do delete a specific phrase across multiple file nam

Post by michaelbeijer »

Do you mean:

Right click on all selected files

Tools > List management > Rename special: Search and Replace…

Click New, type "_en-nl_/_" and then … click OK?

I just did that and nothing happened.
Translator & Terminologist (http://beijer.uk/)
(System: Windows 7, 64-bit, 27" monitor)

michaelbeijer
Posts: 57
Joined: 19 Apr 2014 00:27
Location: Hastings, East Sussex, UK.
Contact:

Re: How do delete a specific phrase across multiple file nam

Post by michaelbeijer »

PS: I just installed ReNamer (http://www.den4b.com/), which is great. Wish there was something like it built into XYplorer.
Translator & Terminologist (http://beijer.uk/)
(System: Windows 7, 64-bit, 27" monitor)

RalphM
Posts: 1932
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: How do delete a specific phrase across multiple file nam

Post by RalphM »

michaelbeijer wrote:Do you mean:

Right click on all selected files

Tools > List management > Rename special: Search and Replace…

Click New, type "_en-nl_/_" and then … click OK?

I just did that and nothing happened.
No, it's either "File/Rename Special/Search and Replace" or Right Click and then "Rename Special/Search and Replace" then enter "_en-nl_/_" in the input field and to make sure everything will work out as you wish you can click "Preview" to get a list of your file names before and after.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How do delete a specific phrase across multiple file nam

Post by highend »

If you weren't able to see the context menu entry, open the config (F9), go to Menus, Mouse, Safety, click on File List..., make sure, [x] Rename Special is ticked.
One of my scripts helped you out? Please donate via Paypal

michaelbeijer
Posts: 57
Joined: 19 Apr 2014 00:27
Location: Hastings, East Sussex, UK.
Contact:

Re: How do delete a specific phrase across multiple file nam

Post by michaelbeijer »

Thanks guys, got it working now!
Translator & Terminologist (http://beijer.uk/)
(System: Windows 7, 64-bit, 27" monitor)

AugerJ
Posts: 50
Joined: 19 Jul 2016 06:27

Re: How do delete a specific phrase across multiple file names?

Post by AugerJ »

Hello. It's not working here (or, most likely, I'm doing it wrong).
I want to delete the exact phrase

Code: Select all

Girls' Generation
from the names of a bunch of files.
And then replace double spaces with a single space.

Right click - Rename Special - Search and Replace... — and what should I type in (in each case)?

(XYplorer 14.80.0200)

Thanks.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How do delete a specific phrase across multiple file names?

Post by highend »

Remove the outer single quotes, they are only used to show where the patterns begin / end!

Code: Select all

'Girls' Generation/'

Code: Select all

'  / '
One of my scripts helped you out? Please donate via Paypal

AugerJ
Posts: 50
Joined: 19 Jul 2016 06:27

Re: How do delete a specific phrase across multiple file names?

Post by AugerJ »

It worked.
Thank you.

Post Reply