Move file depending on file name

Support for Windows users
Post Reply
Daniel3032
Posts: 3
Joined: 29 Sep 2016, 22:13

Move file depending on file name

Post by Daniel3032 »

This is what i use now

Code: Select all

G:/Videoer/Movies/{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}]/{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}] {' CD'+pi}{'.'+lang}
I would like to have filebot move any file with the name ''Joy'' in it to G:/Videoer/Movies/1 A -JoyBell
is this possible?
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Move file depending on file name

Post by rednoah »

if-then-else

Code: Select all

fn =~ /Joy/ ? '/path/to/Joy' : '/path/to/NoJoy'
@see viewtopic.php?f=5&t=4191
:idea: Please read the FAQ and How to Request Help.
Daniel3032
Posts: 3
Joined: 29 Sep 2016, 22:13

Re: Move file depending on file name

Post by Daniel3032 »

Thank you, that worked :) i changed it to

Code: Select all

{fn =~ /Joy/ ? 'G:/Videoer/Movies/1 A -JoyBell/' : 'G:/Videoer/Movies/'}{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}]/{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}] {' CD'+pi}{'.'+lang}
Post Reply