Add image to folder after rename

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
martinc
Posts: 13
Joined: 03 Jan 2019, 17:46

Add image to folder after rename

Post by martinc » 13 Mar 2019, 09:01

Hi,
Have a great script (thanks to help here) which takes a file I have derives a name and moves to a new folder. What I would like to automate is to copy an image from a static location into that folder.
Any advice how to do that would be appreciated.
Existing rename code below...

Code: Select all

filebot.exe -rename -r D:\EPL --db file --format "{ def m = (file.path =~ /(\w+).(\d{4}.\d{2}.\d{2}).(.+?).\d{3,4}p.+/)[0]; def s = m[1]; def d = m[2]; def t = d + ' - ' + m[3].space(' '); s / t / t}" --output D:

User avatar
rednoah
The Source
Posts: 16129
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add image to folder after rename

Post by rednoah » 13 Mar 2019, 09:24

The -exec option will do.

e.g.

Code: Select all

-exec robocopy X:\Assets {folder}
:idea: Please read the FAQ and How to Request Help.

martinc
Posts: 13
Joined: 03 Jan 2019, 17:46

Re: Add image to folder after rename

Post by martinc » 18 Mar 2019, 13:28

Sorry - for the delay in responding, didn't get notification of a reply. Many thanks! Will try this out.

Post Reply