I am trying to copy a file named 'dat'. This file has no extension. The thing is though that under a Parent Folder 'Personal' I have 500 folders and all of these 500 folders have the 'dat' file. I am interested in copying all these 'dat' files and placing them in my destination directory.
So when I paste these 'dat' files in my destination directory, I am hoping to name them as follows:
"Folder_they_were_residing_in.dat"
So all the dat files will be renamed to the folder_name they were residing under with the extension'dat'.
Is this possible?
Best Answer
Configure
$source
and$dest
as needed, include trailing slash.