#1 2018-08-04 16:14

loungebob
New Member
Registered: 2015-09-29
Posts: 5

Rename file based on folder name, delete a file, move a file

I’ve been trying for hours (trial and error, logic is too hard at these temperatures) to do the following:

Rename base folder, move files within sub folder to base folder, delete files with specific extension, rename all files left based on the base folder.

Example:

Funny.Movie.1080p.BluRay (base folder)
Funny.Movie.1080p.BluRay.mp4 (file in base folder)
bla.txt (file in base folder)
Sub (sub folder of base folder)
sub.srt (file in sub folder)

I want to move sub.srt to base folder Funny.Movie.1080p.BluRay, delete Sub folder and delete all files with a specific extension (in this case bla.txt) and then rename all files within the base folder according to whatever I rename the base folder to.

I dabbled with regex and pascal but it’s all a bit out of my realm.

Any help?

Offline

#2 2018-08-04 19:31

loungebob
New Member
Registered: 2015-09-29
Posts: 5

Re: Rename file based on folder name, delete a file, move a file

Nevermind. Figured it out. Who knew unticking skip extension would make such a difference lol.

Offline

Board footer

Powered by FluxBB