Batch file rename
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.
Midnightwalk
(3,131 posts)Id make a copy of the files into a new directory first and use the command line version myself but I dont use windows for anything much any more so I cant vouch for this.
https://www.google.com/amp/s/www.windowscentral.com/how-rename-multiple-files-bulk-windows-10%3famp]
For unix/mac it would be a few line script depending on how simple the pattern was. Id still work on a copy of the files and would probably google linux rename multiple files if I didnt have time to mess with it.
Eugene
(62,736 posts)I use FreeCommander XE, which does it as select files and do a text search-and-replace.
Double Commander (open source) and Q-Dir (freeware) also offer this, but I have not tried them myself.
canetoad
(18,190 posts)Basic version is free. I've just installed it on Win 10 x64 and it seems to run OK.
Turbineguy
(38,440 posts)I'll give it a try.
discntnt_irny_srcsm
(18,593 posts)Type this at the command line:
ren 10-L-*.txt 10-8-*.txt
Here is the rename help:
Renames a file or files.
RENAME [drive:][path]filename1 filename2.
REN [drive:][path]filename1 filename2.
Note that you cannot specify a new drive or path for your destination file.
The syntax of the windows help above uses [] to enclose optional terms.
Turbineguy
(38,440 posts)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