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

Turbineguy

(38,361 posts)
Thu Jan 9, 2020, 01: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

Eugene

(62,638 posts)
3. An alternative file commander/explorer can do this interactively.
Thu Jan 9, 2020, 02: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