Hi!
Thanks for taking time to answer, sorry if I didn't make myself clear, my aim is to achieve queueing of my sub "deployRoutine" so that each copy task is executed after another and not sent alltogether.
I have two main loops, the first loop through "targets" (ie: server where I need to copy files/directories) and the second embbeded is to loop through "deployments" which are several separated copy tasks.
Lets say I have 3 servers : srv1, srv2 & srv3, I need to copy on each of those some remote content to local contents: copy1, copy2 & copy3 with
- copy1: source=\\some\remote\content1 dest=C:/some/local/content1
- copy2: soure=\\some\different\remoteconte dest=C:/another/local/destination
- copy3: ... (you get the idea)
I want the copy tasks (I said 3 but that could be 4, 5 or more, this can vary) sent to each servers one after another while currently they are sent at the same time since I create the thread its directly executed to the server.
Right now I'm trying to understand your code as it's bit unclear to me.
Cheers :)