I have been attempting to rename a bunch of files to their directories.
I have multiple directories with spaces and no spaces /The Dark Tower
.
In it are multiple titles with file names with spaces and no spaces as well:
/The Dark Tower/TDT feature.mov
/The Dark Tower/Main Trailer.mov
/The Dark Tower/Trailer_Sub
I need to change the files in these directories with the name of the folder adding a number to the end of the file name:
/The Dark Tower/TDT feature.mov -> /The Dark Tower/The Dark Tower1.mov
/The Dark Tower/Main Trailer.mov -> /The Dark Tower/The Dark Tower2.mov
/The Dark Tower/Trailer_Sub -> /The Dark Tower/The Dark Tower3.mov
I have been doing this manually, but I would rather be able to do this with one script for 100 of movie titles I have. I know it can be done, but my current attempts have not been successful.