"C:\Movies\Random Movie Title\orc.random.dvdrip.avi"
renamed to:
"C:\Movies\Random Movie Title\Random Movie Title.avi"
the reason i want this is i have already made an extensive multi-regexp script to rename any movie's folder that i download to just be the movie title and nothing else. however, the actual video files are usually abbreviated and in no proper format. I'd like to just rename the movie files using their parent folder that i've already had my script fix for me. anyone got any ideas?
that works great, one more question. is there any way to set it up to automatically retain the cd1/cd2 suffix on certain files without manually altering the rename fields each time?
i have a button set up to run my main rename script for the folders on left click and i'd like to set it up to run this parent folder rename as the right click option for that button.
on that note, is there a way to set it so that if it sees a cd1 or cd2 or cd3 that it renames it accordingly? the last example only affects the cd1 file and does not touch the cd2 file
In that case the easiest thing is probably doing it in two steps.
[ul][li]Step 1: Do one rename which copies the parent folder name into the file names:
From: *
To: {parent1} XX *
Type: Standard rename
File Info Fields: Enabled
(So you get "Artist - Album XX Title.mp3")
[/li]
[li]Step 2: Do another rename which removes the unwanted part:
From: b - (.) XX (.)[/b]
To: \1 - \3
Type: Regular Expressions
File Info Field: Disabled (doesn't really matter but might be faster to disable them)
(So you get "Artist - Title.mp3")[/li][/ul]
There's nothing special about the XX part; it's just used as a marker to know what to remove. You could use any characters that are unlikely to appear in the real names.
You could do this in a single rename step, but I think doing that would require some VBScript or similar which would make it a lot more complex.
Here's one way to do it. If you don't care about all the different cases then you can use a much simpler regexp but this one handles all the situations I could think of:
Old name: (|(.*[^0-9]))([0-9]+)(|([^0-9].*))(\.[^.]*)