Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
Pick Your
Battles
Get Ur Rest
Look for Joy
We have
A Big Fight
Ahead
You still
have time to
to send some
money DU`s
way. Support
the summer
fund drive!

I have
DU friends
everywhere.



Rebellions
are built
on HOPE




DU
keeps
HOPE
alive


Thank you

EarlG

Check out
all the stickies
on Grovelbot's
Big Board!

Turbineguy

(39,244 posts)
Thu Jan 9, 2020, 02:02 PM Jan 2020

Batch File rename 2

Yesterday I posed the following question:

I want to rename a large number of files. The file names look like this

10-L-1 Stuff.docx

I want to change the "L" into an "8"

And leave everything else as is.

Anybody know a fairly simple to understand method for that?

I've already looked for the Windows 10 method but that changed everything.

I got several answers, but could not work them out. Using the Windows instructions I only get "Syntax Error"

Here is what I want to do: I want to change 1 character in all the files in the batch. I need the exact spelling.

Drive F

1st Folder PMI

Sub Folder 61

2nd Sub folder QMEDEX

3rd Sub Folder QMEDANS

File name 01-J-3 Quiz A.docx

Desired name 01-10-3 Quiz a.docx

I need to know the exact syntax

The other files that I want to rename have 01, 02, 04 etc in the first number and 3, 4, 5 in the 3rd number

I only want to change the "J" into a "10"

Thanks

3 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Batch File rename 2 (Original Post) Turbineguy Jan 2020 OP
Tool... Newest Reality Jan 2020 #1
Thanks. Turbineguy Jan 2020 #2
An alternative file commander/explorer can do this interactively. Eugene Jan 2020 #3

Newest Reality

(12,712 posts)
1. Tool...
Thu Jan 9, 2020, 02:24 PM
Jan 2020

Have you tried a tool like this? You should be able to use a wildcard to batch rename the files as you want to.

https://www.batchrenamefiles.org/

Turbineguy

(39,244 posts)
2. Thanks.
Thu Jan 9, 2020, 02:36 PM
Jan 2020

It changed all the file names but not to what I actually want. I'll change them by hand.

Eugene

(66,217 posts)
3. An alternative file commander/explorer can do this interactively.
Thu Jan 9, 2020, 03:08 PM
Jan 2020

This example for 10-L-1 Stuff.docx uses Free Commander XE ( https://freecommander.com )



Select the files you want and click File->Multirename or Ctrl-M.



You will see a search-and-replace dialog box. Put "-L-" in the Search for field and "-10-" in the Replace with field. Then press the Rename button.



Results:



This example does one change at a time to be conservative. There are several more options (like regular expressions) that support more advanced pattern matching.

Latest Discussions»Help & Search»Computer Help and Support»Batch File rename 2