INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Rename files Question?  (Read 998 times)

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Rename files Question?
« 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

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Rename files Question?
« Reply #1 on: February 22, 2006, 06:10:17 am »

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 #])

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Rename files Question?
« Reply #2 on: February 22, 2006, 07:07:38 am »

Brilliant cheers Marko!
Pages: [1]   Go Up