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 

automize 8: How to set target folder fot SFTP

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts
View previous topic :: View next topic  
Author Message
gb5256



Joined: 16 Nov 2009
Posts: 2

PostPosted: Mon Nov 16, 2009 1:21 pm    Post subject: automize 8: How to set target folder fot SFTP Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Tue Nov 17, 2009 5:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts 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