Hi! I have files like this:
353338.jpg
353338_2.jpg
353338_3.jpg
353339.jpg
353339_2.jpg
353339_3.jpg
..etc..
And i have to rename only these, which don't have underscore to get _1 added.
So the result i want to achieve should like this:
353338_1.jpg
353338_2.jpg
353338_3.jpg
353339_1.jpg
353339_2.jpg
353339_3.jpg
Please, can you help me?
Renaming multiple files
Moderators: Hacker, petermad, Stefan2, white
Re: Renaming multiple files
There are several ways to do this:
- Search for these files specifically, i.e. files without an underscore in their name. This can be done via the Plugins tab:After feeding the results to the listbox, select all files (Ctrl+A) and call MRT (Ctrl+M) and set the search term to
Code: Select all
tc | name | !contains | _
Code: Select all
[N]_1
- Select all files and call MRT (Ctrl+M) and use these settings:
Search for:Replace with:Code: Select all
^([^_]+)$
[ ] ECode: Select all
$1_1
[X] RegEx
This replaces names which don't contain an underscore with themselves and adds "_1" at the end before the extension.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Renaming multiple files
Using Multi-rename tool:
Code: Select all
Search for: ^\d+$
Replace with: $0_1
☐ [E]
☑ RegEx
☐ Subst
Re: Renaming multiple files
Rename mask: file name
[N1-6]_1[N7-]
Search for: _1_
Replace with: _
[N1-6]_1[N7-]
Search for: _1_
Replace with: _
-
- Junior Member
- Posts: 2
- Joined: 2024-09-18, 18:00 UTC
Re: Renaming multiple files
Thanks a lot!white wrote: 2024-09-18, 18:56 UTC Using Multi-rename tool:Code: Select all
Search for: ^\d+$ Replace with: $0_1 ☐ [E] ☑ RegEx ☐ Subst