WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Rename plugin (Read 1346 times)
LRI
YaBB Newbies
*
Offline



Posts: 25
Rename plugin
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.
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Rename plugin
Reply #1 - Aug 8th, 2015 at 9:33am
 
Hi,

I think the easiest way to do this is to use the "copy files" plugin:
http://www.watchdirectory.net/wdhelp/plugins/wdopAutoCopy.html

Set the option to use "dynamic naming"  and enter
C:\Some\Other\Dir\file.txt
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
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
LRI
YaBB Newbies
*
Offline



Posts: 25
Re: Rename plugin
Reply #2 - Aug 10th, 2015 at 8:56pm
 
Thanks Gert! Worked perfectly.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1