I have workflow that requires to requires to transfer a pair of files at a time - 1 ZIP & 1 .CNTL file
Then the workflow will process these 2 files and append data into a table.
The source file has 60 ZIP and 60 CNTL files, how do I dynamically transfer these files 1 by 1?
ZIP File names = File_name_2020Jan.ZIP , File_name_2020Feb.ZIP, File_name_2020Mar.ZIP, etc....
CNTL File names = File_name_2020Jan.CNTL, File_name_2020Feb.CNTL, File_name_2020Mar.CNTL, etc....
Currently:
BAT job: Before RUN
xcopy "C:\Users\dmwang\Desktop\Relocate files\File_name_2020Jan.ZIP" "C:\Users\dmwang\Documents\testing\File_name_2020Jan.ZIP" /Y
xcopy "C:\Users\dmwang\Desktop\Relocate files\File_name_2020Jan.CNTL" "C:\Users\dmwang\Documents\testing\File_name_2020Jan.CNTL" /Y
I have tried:
xcopy "C:\Users\dmwang\Desktop\Relocate files\File_name_2020*" "C:\Users\dmwang\Documents\testing\File_name_2020*" /Y .... and it just transferes everything instead of 1 by 1 of ZIP and CNTL pair.