Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
1/18/2026 2:54:52 PM EDT
[Last Edit: -SkyRaider-][Edited]
Say I have the following files in a folder:

Bubba_01.jpg
Bubba_02.jpg
Bubba_03.jpg
Bubba_04.jpg

...and I want to change the filenames to:

Bubba_Gump_01.jpg
Bubba_Gump_02.jpg
Bubba_Gump_03.jpg
Bubba_Gump_04.jpg

If I select all 4 files, then select the file at the top and add the "_Gump" via the "rename" menu item, the result is:

Bubba_Gump_01 (1).jpg
Bubba_Gump_02 (2).jpg
Bubba_Gump_03 (3).jpg
Bubba_Gump_04 (4).jpg

Is there a way to not have the " (x)" automatically appended?

Thanks for any replies.

1. Formerly "Sig_Prude".
2. I am not a pilot.
3. I have never served in the military.
4. Thank you for your service.
1/18/2026 3:12:25 PM EDT
[Last Edit: Daggertt][Edited] [#1]
This would be a great question for ChatGPT, Gemini, grok, etc.

Literally copy and paste your post into the AI chat of your choice just the way you formulated it here.

It will give you the answers and step by step instructions. or if it's not possible, it will tell you what the available options are.

I'm not trying to be a dick. If this isn't the kind of thing you have the reflex to ask AI yet, then you're getting left behind. Even just "googling" such a problem gives you at best someone's similar problem on reddit or stack overflow and you have to try to adapt their solution to you situation. AI will tailor make the solution and walk you through it and you can ask follow up questions.


I imagine one possible solution will be to write a simple batch file.
1/18/2026 3:14:01 PM EDT
[#2]
I do not think so, the operating system does that as a way to distinguish the different files.  If you try to save a file with the same name a box will pop up asking what you want to do and if you choose to "save both" it will do the same thing I believe.
1/18/2026 3:40:26 PM EDT
[Last Edit: Daggertt][Edited] [#3]
Gemini's response as an example, but it would be easier to give Gemini your actual file names instead of the example of "Bubba":

Using a batch file (.bat) is a classic and effective way to do this in Windows 11 without installing any extra software.

The command used in batch files for renaming is ren (or rename). However, because you are inserting text in the middle of a filename, a simple "wildcard" rename won't work perfectly it would likely overwrite the numbers. Instead, we use a small loop.

The Batch Script

1. Open Notepad.

2. Copy and paste the following code:


@echo off
setlocal enabledelayedexpansion

for %%f in (Bubba_*.jpg) do (
   set "filename=%%f"
   set "newname=!filename:Bubba_=Bubba_Gump_!"
   ren "%%f" "!newname!"
)

pause

View Quote
How to use it:

1. In Notepad, go to File ... Save As.

2. Navigate to the folder where your images are located.

3. Change "Save as type" to All Files (.).

4. Name the file rename_images.bat and click Save.

5. Double-click the rename_images.bat file in your folder.


A Quick Warning

Batch files are powerful and don't have an "Undo" button. Before running it, it's always a good idea to copy your 4 files into a "Test" folder just to make sure the script behaves exactly how you expect!

Would you like me to modify the script so it can handle any prefix you type in, rather than just "Bubba"?

1/18/2026 3:44:56 PM EDT
[#4]
Also from Gemini:

You can also use a quick command. This looks technical but is just a "Find and Replace" for filenames.

1. Open the folder containing your files.

2. Right-click in the empty space of the folder and select Open in Terminal (this opens PowerShell).

3. Copy and paste the following command and press Enter:

Get-ChildItem -Filter "Bubba_*.jpg" | Rename-Item -NewName { $_.Name -replace 'Bubba_','Bubba_Gump_' }

View Quote

1/18/2026 7:25:22 PM EDT
[#5]
Quote History
Originally Posted By Daggertt:
Also from Gemini:

You can also use a quick command. This looks technical but is just a "Find and Replace" for filenames.

1. Open the folder containing your files.

2. Right-click in the empty space of the folder and select Open in Terminal (this opens PowerShell).

3. Copy and paste the following command and press Enter:


View Quote View All Quotes
View All Quotes
Quote History
Originally Posted By Daggertt:
Also from Gemini:

You can also use a quick command. This looks technical but is just a "Find and Replace" for filenames.

1. Open the folder containing your files.

2. Right-click in the empty space of the folder and select Open in Terminal (this opens PowerShell).

3. Copy and paste the following command and press Enter:

Get-ChildItem -Filter "Bubba_*.jpg" | Rename-Item -NewName { $_.Name -replace 'Bubba_','Bubba_Gump_' }


This is the way. Powershell can zip through this like nothing. As noted above, make a copy of the entire directory. Then navigate to the directory and run the command. Done.
In the beginning, the universe was created. This made a lot of people very angry, and has been widely regarded as a bad move. -Douglas Adams
1/18/2026 8:23:19 PM EDT
[#6]
Quote History
Originally Posted By Daggertt:
This would be a great question for ChatGPT, Gemini, grok, etc.

Literally copy and paste your post into the AI chat of your choice just the way you formulated it here.

It will give you the answers and step by step instructions. or if it's not possible, it will tell you what the available options are.

I'm not trying to be a dick. If this isn't the kind of thing you have the reflex to ask AI yet, then you're getting left behind. Even just "googling" such a problem gives you at best someone's similar problem on reddit or stack overflow and you have to try to adapt their solution to you situation. AI will tailor make the solution and walk you through it and you can ask follow up questions.


I imagine one possible solution will be to write a simple batch file.
View Quote

@Daggertt

I ran it through ChatGPT, which pointed me in the direction of PowerToys:

"Option 3: Use a bulk renaming tool

If you do this often:

Microsoft PowerToys → PowerRename (official, free)

Lets you insert text without auto-numbering

Bulk Rename Utility (very powerful, free)

PowerRename example:

Search: Bubba

Replace: Bubba_Gump

Disable numbering entirely"

1. Formerly "Sig_Prude".
2. I am not a pilot.
3. I have never served in the military.
4. Thank you for your service.
1/18/2026 10:43:19 PM EDT
[#7]
Could just do a one-liner in PS (always run with -WhatIf to make sure it's going to do what you want without destroying anything first).

Get-ChildItem -Path 'C:\Path\To\Files' -Filter '*.jpg' | Rename-Item -NewName {$_.Name -replace 'Bubba_', 'Bubba_Gump_'} -WhatIf
1/18/2026 10:57:25 PM EDT
[Last Edit: Daggertt][Edited] [#8]
Quote History
Originally Posted By -SkyRaider-:

@Daggertt

I ran it through ChatGPT, which pointed me in the direction of PowerToys:

"Option 3: Use a bulk renaming tool

If you do this often:

Microsoft PowerToys   PowerRename (official, free)

Lets you insert text without auto-numbering

Bulk Rename Utility (very powerful, free)

PowerRename example:

Search: Bubba

Replace: Bubba_Gump

Disable numbering entirely"

View Quote
Yeah so you can ask follow-up questions like, what other options are available? Or is there a simpler way? Or just start off with, give me 3 ways to do this...

But it looks like that was already option 3 that it proposed.

Did it work for you?
1/20/2026 12:25:11 AM EDT
[#9]
Install Power Toys from Microsoft
https://learn.microsoft.com/en-us/windows/powertoys/
https://github.com/microsoft/PowerToys

Use the Power Rename tool.
1/22/2026 1:58:54 AM EDT
[#10]
This is the app you seek. Bulk File Rename
I use it all the time. Lets you see the change before committing.
If you are asking, scripting is not what you want to be doing.
1/22/2026 9:30:03 PM EDT
[#11]
Quote History
Originally Posted By Skootr:
Install Power Toys from Microsoft
https://learn.microsoft.com/en-us/windows/powertoys/
https://github.com/microsoft/PowerToys

Use the Power Rename tool.
View Quote


I use power rename all the time. It's great!

Sign up to continue the discussion

Create a free account to share your thoughts, follow topics, and connect with the AR15.COM community.

Already a member? Sign In