WatchDirectory Forum
watchDirectory forums >> Plugins >> Rename plugin

Message started by LRI on Aug 7th, 2015 at 11:35pm

Title: Rename plugin
Post by LRI on Aug 7th, 2015 at 11:35pm
We have files coming in with different names. We would like to rename them to file.txt as they come in and process them, after which they are deleted. Its only one file at a time but the names are different.

Is there a way to set that up with WD using a wildcard? input*.txt renames to file.txt

We can get it to work if we use the exact name for the incoming file but there are to many variations to make that practical.

Title: Re: Rename plugin
Post by Gert on Aug 8th, 2015 at 9:33am

I think the easiest way to do this is to use the "copy files" plugin:

Set the option to use "dynamic naming"  and enter
for the dynamic name. (You are actually not using dynamic naming in this case, but this option allows you to set the final name of the files).
You probably also want to set the options
[ ] remove the file after copy
[ ] implement as move

Title: Re: Rename plugin
Post by LRI on Aug 10th, 2015 at 8:56pm
Thanks Gert! Worked perfectly.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2018. All Rights Reserved.