What I need to do is straight forward but proving to be impossible for me.
I have found different threads here and tried cutting and pasting but I can't get the finished result.
So here is my humble request if anyone could help or point me in the right direction, I would be very grateful.
I have thousands of images which all need their file format changed.
lets say I have 3 files like below;
picture00001.tif
picture00002.tif
picture00003.tif
I need to take the numerals (last 5 digits excluding file type) and add them to the front with an "_" like this;
00001_picture.tif
00002_picture.tif
00003_picture.tif
finally, I want to move them from 1 directory to another as they are renamed...just incase
This part I have working but obviously I would like it working with the renaming functionality.
If possible... but not necessary... it would be nice if it had a counter, just so I can see the progress...
Any help that anyone can offer, is truly appreciated.
Thank you!
John
P.S. The batch job that I managed to put together (thanks to the posts here) is as follows (with all of it's imperfections);
@echo off
setlocal enabledelayedexpansion
set "sourcefolder=c:\ToBeRenamed"
set "destinationfolder=c:\Renamed"
:MAINLOOP
cd /d "%sourcefolder%"
move /y "*.txt" "%destinationfolder%
pause
IF NOT EXIST *.txt GOTO

goto MAINLOOP

ECHO ALL FILES MOVED - time to party
pause