Page 1 of 1

Add image to folder after rename

Posted: 13 Mar 2019, 09:01
by martinc
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:

Re: Add image to folder after rename

Posted: 13 Mar 2019, 09:24
by rednoah
The -exec option will do.

e.g.

Code: Select all

-exec robocopy X:\Assets {folder}

Re: Add image to folder after rename

Posted: 18 Mar 2019, 13:28
by martinc
Sorry - for the delay in responding, didn't get notification of a reply. Many thanks! Will try this out.