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 

Increment filenames using variables

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Jan 24, 2013 5:47 pm    Post subject: Increment filenames using variables Reply with quote

User Support Request:
We are currently using "Automatize Enterprise" as part of our system to move files between FTP / SFTP servers, but we now need move multiple files at a time cycle, to the same directory, but the file has the same name, need to add a number sequentially to each file transported to not repeat.
for example:
Current transport file = fico.txt
resulting filenames =fico00001.txt , fico00002.txt , fico00003.txt ......

Could you inform us if this is a functionality with in "Automatize Enterprise"? and if so, guide us to a Manual to configure this option?
Thanks in advance for your help.
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Jan 24, 2013 5:48 pm    Post subject: Reply with quote

1) Create a ‘Number Variables’ task with following settings:
Variable Name = Increment
Function = +
Value = 1
New Variable Name = Increment

2) Before you run the FTP task, you should run this task. It will increment the value of the variable. If you ever have to manually edit or reset this variable value, the variable is stored in the file: ..Automize9\data\variables\userVariables . You can edit this file with notepad.

3) In the FTP task , to change the filename from fico.txt to fico1.txt use the following in the Append To filename field (of Ftp task):
P2::$%Increment%$ (case sensitive)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions 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