Tim said:
I have a large folder that I need to rename the file extension. The format
is as follows:
xxx.jpg.001.14c.bak
The .001 is uniform...the 14x.bak varies from file to file.
What I need is this:
nice pic.jpg.001.14c.bak to this nice pic.jpg
Is there a way to wildcard this so I do not have to rename all 200 files
individually ?
Thanks, Tim
XP pro ver 3
------------------------
@echo off
set "var="
echo %1
set /p "var=Enter a new extension for the folder (enter alone to abort): "
if not defined var goto :EOF
pushd "%~f1"
ren "*.*" "*.%var%"
popd
--------------------------
copy the above to notepad, do a 'save as' and name it 'renXP.bat'. (make
sure you click on 'all files' in notepad or it will add a .txt to the
end.) when you save it, save it to your 'sendto' folder, or the xp
equivalent. (I use 98se, but this batch file is for XP.)
now go to the folder where all your files are kept, right-click on it
and choose renXP... it will bring up a dos box where it will ask for
the number of letters in the new extention.... in your case and in 99%
of others, it will be 3. Next, simply enter the extention, ie, jpg, and
voila, they are all renamed to that extention. when it is finished,
click any key then close it.
it is so simple to use and always at your finger tips via a right click
on a folder.
S/C