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 

Sort files and transfer only first file

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Monitoring Tasks
View previous topic :: View next topic  
Author Message
melvin
Site Admin


Joined: 25 May 2006
Posts: 595
Location: Santa Barbara, california

PostPosted: Wed Jan 10, 2007 4:20 pm    Post subject: Sort files and transfer only first file Reply with quote

I have been experimenting with your product for a few days and have a question. Does your product have the ability to put/get only the most recent file?

Example,
I have a local directory with 5 files:
Inventory_20070101.xml
Inventory_20070102.xml
Inventory_20070103.xml
Inventory_20070104.xml
Inventory_20070105.xml

So the file format would be Inventory_*.xml but that send all 5 files. Could your program search for Inventory_*.xml AND only grab the most recently created file? The outcome would be that Inventory_20070105.xml would be sent to the remote directory.
Back to top
View user's profile Send private message Send e-mail
melvin
Site Admin


Joined: 25 May 2006
Posts: 595
Location: Santa Barbara, california

PostPosted: Wed Jan 10, 2007 4:20 pm    Post subject: Reply with quote

You can only do this for the PUT using the DirLoop Monitoring task. This task allows you to sort files based on date and also specify loops (1 for you). Then use the DirLoop variable $%task_title::CurrentFilename%$ in the Ftp task filename field. The Ftp and SFtp monitoring tasks do not allow you to specify the maximum number of loops/files to set.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Monitoring Tasks 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