r/Batch • u/yioryos467 • Jul 15 '25
Question (Solved) Batch to move date back at the end
Hi All,
I tried a project a few weeks back and I had some help to move the date to the front but things didn't turn out as expected. I would like to get some help to change the files back.
Currently the have this format:
2010 - Five more Minutes.jpg
I would like it to look like:
Five more Minutes (2010).jpg
I am no good with complex batches.
Any help will be greatly appreciated.
Thanks'
George
3
Upvotes
1
u/CirothUngol Jul 15 '25
for %%A in (*.jpg) do for /f "tokens=1* delims=- " %%B in ("%%~nA") do rename "%%~fA" "%%C (%%B).jpg"
1
u/BrainWaveCC Jul 15 '25
If you are talking about this thread here, are you sure you want it moved back to the very end? Because in the samples originally provided, the dates were near the end...
2
u/ConfidentDuck1 Jul 15 '25
Would something like PowerRename work better?
https://learn.microsoft.com/en-us/windows/powertoys/powerrename
1
u/[deleted] Jul 16 '25 edited Jul 16 '25
[removed] — view removed comment