I have previously searched for an answer for my question, however nothing to this point has specifically answered it. See: Using xcopy to copy files from several directories to one directory, and Batch file to copy files from one folder to another folder .
Within one directory (Data
) I have specifically named multiple directories e.g. (SIAE02203
) that contain generically named .JPEG files (plot.jpeg
). I hope to create a batch file that is able to go through each directory, locate, copy AND rename the plot.jpeg
file with the parent's folder name.
So plot.jpeg
becomes SIAE02203-plot.jpeg
.
The structure of the directories looks like: Data\SIAE02203\plots\plot.jpeg
.
I hope to copy the renamed file to Data\Output
.
Would this be at all possible?