I have a folder with several subfolders. Each subfolder contains several images. I want to rename the images in each subfolder to folder_name & "_" & file_name, meaning I want to add the folder name to the image file name. Subsequently I want to move all images from the subfolders to the main folder and delete the subfolders.
I have the image of my script attached. It returns the attached error message. Who can help me ?