Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: not2easy
You could start reading here:
That will give you an array which you would want to loop through using this:
Use this function or similar in the foreach loop to overwrite the files with the new one:
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
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
::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
::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"