rename last 4 characters in filename.

August 11, 2018 at 15:21:48
Specs: Windows XP
I need to rename on a Windows XP computer hundreds of files in DOS in one folder that are like this:
PPER-SDDG4456-000.JPG
HJJDE-COM345-000.JPG
ER3S-HG567D44SF-000.JPG

I need to replace the last "-000" for _001"
thus:

PPER-SDDG4456_001.JPG etc.

I have tried: ren *-000.jpg *_001.jpg but I do not get the correct results.
Can anyone help. Thanks.

message edited by CeferinoMarrero


See More: rename last 4 characters in filename.

Reply ↓  Report •

#1
August 11, 2018 at 17:21:16
I moved your question since "windows command-line" isn't really considered MS-DOS.

The easiest solution would likely be to forget trying the command-line and try a utility specifically for such --- Bulk Rename Utility (I use it frequently):

https://www.bulkrenameutility.co.uk...

Screenshots:

https://www.bulkrenameutility.co.uk...

It looks complicated, but after a couple of tries, you'll have it down easily...

"Channeling the spirit of jboy..."

message edited by T-R-A


Reply ↓  Report •

#2
August 12, 2018 at 00:03:53
Thanks. I am doing it with a bulk renamer now but I need to find a way to do it as part of a large bat file that renames many other files and moves them in a hundred different folders and all the other requirements work.

message edited by CeferinoMarrero


Reply ↓  Report •

#3
August 13, 2018 at 12:08:58
https://groups.google.com/forum/#!f...

NT batch is much more powerful than MS-DOS batch could have ever been.

My issue is permissions, especially with XP where I usually don't have permission to change a thing especially from a DOS box. Lack of good error report is just the start of the issue too. But when it works, it works very well.

Lee


Reply ↓  Report •
Related Solutions


Ask Question