| View previous topic :: View next topic |
| Author |
Message |
melvin Site Admin
Joined: 25 May 2006 Posts: 595 Location: Santa Barbara, california
|
Posted: Wed Jan 10, 2007 4:20 pm Post subject: Sort files and transfer only first file |
|
|
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 |
|
 |
melvin Site Admin
Joined: 25 May 2006 Posts: 595 Location: Santa Barbara, california
|
Posted: Wed Jan 10, 2007 4:20 pm Post subject: |
|
|
| 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 |
|
 |
|