Hi Henrik
Basically, we wish to take an input filename (e.g. abc123456789.dat into a VC variable) and pattern match it with an entry in a CSV file, for example:
================ csv file ===================
Xyz*.xml, app1, c:\files\mainfiles, y, y, n
Aaa???.*, app2, c:\files\backupfiles,n,n,n
abc*.dat, mainapp, c:\files\process\,y,y,y
================ csv file ===================
In this example, the first field of the third record (abc*.dat) matches the input filename, and so therefore, the subsequent fields are assigned to internal VC variables (e.g. {DocDef}, {filepath}, {flag1}, {flag2}, {flag3} etc)
Therefore a subsequent Task within the job will be able to issue a windows command, for example:
‘prog.exe /app={DocDef}, /Input={filepath}{Inputfilename}’
using the individual field values passed from the matched CSV record.
So somehow I need to be able to derive fields externally and pass them back into VC for further processing.
My example with using Powershell is a good example of being able to establish the individual variable values, but there is no obvious way of getting them back into individual VC Variables.
Hope that explains things better?
Cheers
Andy