INTERACT FORUM
More => Old Versions => Media Center 11 (Development Ended) => Topic started by: Mr ChriZ on February 22, 2006, 06:03:35 am
-
Is it possible to create an if expression when renaming files?
I want something along the lines of
if (discNo != null) then
include disc number in path name
else
don't...
end
to create something like as follows
Drive:\Media\Audio\[Artist]\[Album]\(Expresion Above\)[Track #] - [Name]
So the Album I'm currently listening to with 2 CD's would become
J:\Media\Audio\Elton John\The Very Best of\Disc 1\01 Your Song.Ape
J:\Media\Audio\Elton John\The Very Best of\Disc 2\01 Don't go breaking my heart.Ape
but something like U2's How to dismantle an atomic bomb on one CD would have tracks like
J:\Media\Audio\U2\How To Dismantle An Atomic Bomb\01 - Vertigo .ape
-
I do mine by asking if the disc# field is empty first:
if(isempty([disc #],1),Music\[file type]\[album artist (auto)]\[Album],Music\[file type]\[album artist (auto)]\[Album]\Disc [disc #])
-
Brilliant cheers Marko!