Page 1 of 1
Folder names in filename
Posted: 27 Oct 2016, 16:02
by RBCC
How do I rename files with a parent folder and a child folder. Such as in the picture. I am looking for the website that shows this. can anyone help? John

Re: Folder names in filename
Posted: 27 Oct 2016, 16:32
by rednoah
The
{n} series name binding?
You can get file path components via the
{f} file binding.
e.g. second element to second-to-last element:
Re: Folder names in filename
Posted: 27 Oct 2016, 19:06
by RBCC
I am a little confused ....
I guess I would like it to read ...
[12-18-1950] Airwolf : Season 1 Episode 1 {t} } Taken from c:\action\Airwolf\Season 1
How is this done, Is there an example that shows this... Where is it? John
Re: Folder names in filename
Posted: 27 Oct 2016, 20:07
by rednoah
{f[1..-2]} is the example solution you're supposed to copy and paste into the Format Editor and play with. You may need to adjust the numbers depending on your path structure.
{f.dir.dir.name} is also possible.
Re: Folder names in filename
Posted: 28 Oct 2016, 05:47
by RBCC
I keep getting a binding file "f" has not been set,
Here's what I have:
{[airdate]} {f[1..-2]} what is it looking for???? John

Re: Folder names in filename
Posted: 28 Oct 2016, 07:14
by rednoah
rednoah wrote:Q: Why are some bindings not working in the Format Editor? It says "BindingException: Sample file has not been set"
You have not selected any media file to test with yet. Click
Change Sample 
and set a media file.
Please read the FAQ:
viewtopic.php?f=3&t=7
I recommend first matching files, then double-clicking the New Names item, so that it can open the Format Editor wit the real match data you're currently processing.
Re: Folder names in filename
Posted: 03 Nov 2016, 20:19
by RBCC
Thank you for your help Rednoah one last thing....
Using the UI can I do file matching? or is that a cmdline thing only!

John
Re: Folder names in filename
Posted: 03 Nov 2016, 23:14
by rednoah
Yes. Depending on what
using the UI can I do file matching 
means.
1.
viewtopic.php?f=3&t=2072
2.
viewtopic.php?f=3&t=3228