Solved 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:

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

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.

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):


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

Report •

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

Report •

August 13, 2018 at 12:08:58
✔ Best Answer!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.


Report •
Related Solutions

Ask Question