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
Remove date from file name (Read 1844 times)
Brandon Cathey
YaBB Newbies
*
Offline



Posts: 1
Remove date from file name
Apr 30th, 2015 at 5:01pm
 
How can I setup Watch Directory to remove a date from a set of files.  For instance, I have 3 files as follows:
Peanut Butter 16_Apr_2015_08_17_00_900.pdf
Jelly 16_Apr_2015_08_14_00_897.pdf
Bread 16_Apr_2015_08_34_43_063.pdf
I want to end up with:
Peanut Butter.pdf
Jelly.pdf
Bread.pdf
Help Please!
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2233
The Netherlands
Re: Remove date from file name
Reply #1 - May 1st, 2015 at 6:52am
 
Brandon,

When you use {dynamic naming} (see http://www.watchdirectory.net/wdhelp/plugins/dynamicname_functions.html ) with, for example, the "copy files" plugin, there are several ways to do this.

If this timestamp is always 25 characters long, use a dynamic name like this to cut the last 25 chars from the name:

C:\Target\Dir\{cutright{25,{filetitle}}}.{extension}

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
 
Page Index Toggle Pages: 1