hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem with RENAME - AbleFTP

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions
View previous topic :: View next topic  
Author Message
uweb



Joined: 28 May 2010
Posts: 3

PostPosted: Mon Jun 07, 2010 5:26 am    Post subject: problem with RENAME - AbleFTP Reply with quote

Hi!
I have created an FTP task with AbleFTP which works almost OK
only problem is the following:
every hour, in my local folder I have a new file, named: Picture_DATE_HOUR.jpg
therefore, each hour I have a new file, differing in the _HOUR part of the name
I can upload the file regularly, and if I check the "Delete Source File" option the folder gets empty as willed, until a new file is created and transferred to the FTP server
now I must rename the file, so that in the FTP server I get a file named "Picture.jpg"
how can I do that?
I tried different options, also using the REGEX code, but always without success....may you please help me finding a solution to this task?
thank you very much!
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Jun 07, 2010 9:53 am    Post subject: Reply with quote

what is your exact filename example?
if your filename is picture_06062010_09.jpg

use for filename field:
REGEXF=picture_[0-9]{1,}_[0-9]{1,}\.jpg
rename field:
picture.jpg
Back to top
View user's profile Send private message
uweb



Joined: 28 May 2010
Posts: 3

PostPosted: Tue Jun 08, 2010 6:24 am    Post subject: Reply with quote

perfect!

thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group