Hi Henrick,
I looked at the job you sended me.
There is a difference here. You are using the output of the .NET task as the looping source. I'm having an other task for this.
This task is a dir listing task. The output is a list of directory names.
In every directory listed there are files names [prefix]_DETAIL_OZ_[mmmyy].csv
The mmmyy is made by the .NET task.
In the file copy I need to copy all the matching files from a particular directory into an other temp directory for further processing.
That's why I need the output of the .NET task as a file mask.
I tried this also in the current 6.1.0 beta version and same issue:
Exception in Task: Could not find a part of the path 'F:\temp\[Current context (running Task) is not in a loop]'.
Exception in Task: No file(s) copied
Here a quick setup of the three tasks:
1. command task.
command: c:\windows\system32\cmd.exe
Arguments: /c dir /b /A:D /O:N
working dir: f:\temp
2. .NET task giving the last month year combination in mmmyy
3. copy file task
source folder: F:\temp\{LOOP(CurrentValueX)}
Include file mask: *{TASK([id of task2],StdOut)}.txt
destination folder: f:\test
Looping on the 3rd task with the for each on the output of the 1st task.
This should give you the same error.
Regards
Erik
Uses Visualcron since 2006.