AnsweredAssumed Answered

How to transfer different files to different locations

Question asked by Simpleuser on Jul 15, 2018
Latest reply on Aug 21, 2018 by Simpleuser

Hello.

 

My question is how to allow this script transfer different files files to different locations?:

 

Script inside Process tab in JOBF:

 

:set &file# = test1.zip ( *.zip )
:set &source# = 'd:\reports\'
:set &dest# = 'd:\reports\TEST\'
:set &src# = '&source#&file#'
:set &dst# = '&dest#&file#'

 

Its wolrking good but allow transfer only one (named) file or all .zip using wildcards but to one loaction.

 

I need as follow:

All the files should be transfered from the same &source# but &dest# will have different subfolders.

 

Example:

test1.zip goes to d:\reports\TEST\

test2.zip goes to d:\reports\TEST2\

 

Additionaly some files have to go to same &dest#:

test3.zip and test3upgrade.zip goes to d:\reports\TEST\

 

One more thing. Names of the files are known and can be listed.

 

Thanks for any help.

Szymon

Outcomes