 |
hiteksoftware.com User discussion forum
|
| View previous topic :: View next topic |
| Author |
Message |
gb5256
Joined: 16 Nov 2009 Posts: 2
|
Posted: Mon Nov 16, 2009 1:21 pm Post subject: automize 8: How to set target folder fot SFTP |
|
|
Hello,
I have just downloaded the trial for the automize 8 and it looks fantastic.
But there is one thing that I can not find (it is probably there, but I need a hint...)
I have a folder on a SFTP which is called LOWRES.
I have several target folders local which have names like:
212
213
214
215
What I would like to acheive is:
The SFTP should download the content of the LOWRES into a new folder called 216. So one number higher than the highest number.
Can this be done?
I could also think of that the task promts me to give it a new folder name, so that I then can look myself and tell it to use "216". Then the script starts and does it.
The next time the target should be the 217, etc...
Is this possible?
Thanks everybody in advance for the help.
gb5256 |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Tue Nov 17, 2009 5:17 pm Post subject: |
|
|
Try the SubdirectoryLoop task (task title = subdirloop)
Sort subdirectories by name in ascending order.. 215 should finish last..
when this task ends.. a variable will be stored called:
subdirloop::SubdirectoryName
create a new number variables task (taskTitle = add)
variable name field = subdirloop::SubdirectoryName
function = +
value = 1
new variable name = newsubdir
In a Visual script task , add the tasks
1) subdirloop
2) add
3) .. your ftp task.. reference 'newsubdir' as the target folder.. |
|
| Back to top |
|
 |
|
|
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
|