#1 2018-08-04 16:14

loungebob
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
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

#3 2019-04-16 16:41

WhiteRau
Member
Registered: 2019-04-16
Posts: 1

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

while glad you figured it out, could you post your solution for those of us interested in the same problem?  i'm wanting to name files based on parent folder and would like to know how you did it.  smile  thanks!

EDIT:  figured it out from another unrelated post. for those not inclined to dig deeper or who have little time to do so, here's how it's done:

Add > Insert > Insert Meta Tag (button) > File_FolderName and then check the 'Replace Current Name' button at the bottom if required

Last edited by WhiteRau (2019-04-16 16:49)

Offline

Board footer

Powered by FluxBB