Forum Moderators: not2easy
You could start reading here:
[us2.php.net...]
That will give you an array which you would want to loop through using this:
[us2.php.net...]
Use this function or similar in the foreach loop to overwrite the files with the new one:
[us2.php.net...]
If you check the notes below you might find some examples that are quite similar or exactly what you want to do.
Probably take you longer than manually doing it but you get to learn something. :)
Assuming using windows
If so
Put the stuff below the #### into notepad and save it in the directory the images are in to whatever.bat (choose save as type all files)
Also put fluffycat.jpg in that directory
double click on whatever.bat and you should end up with a folder called renamedImages.
Ps I accept no responsibility of this script ;)
backup the images before trying
####
@echo off
setLocal EnableDelayedExpansion
::Puts a list of all images in the directory this script runs into into a file.
dir /B *.jp* > images.txt
dir /B *.gif >> images.txt
dir /B *.psd >> images.txt
echo creating folder
mkdir renamedImages
::Reads each line of the file we just created
for /f "tokens=* delims= " %%a in (images.txt) do (
echo copying image
copy fluffycat.jpeg renamedImages\
echo renaming image to %%a
rename renamedImages\fluffycat.jpeg "%%a"
echo __
)