– like File/FTP adapter for example). In this weblog I’m going to present two very simple scenarios
with which using command line can be quite useful.
Imagine you need to send the target file to many folders. Would it be wise to create many receivers
(for every folder) and try to use many file adapter communication channles? What if the file had 20 or 50 Mb?
Would you want to overload your file adapters making them create the same file many times? If the answer is “No”
check out the batch file code below. The first example will copy the output file to 4 locations and delete
the old file from the original location:
File adapter configuration looks like this:
%f – original file name
%F – absolute file name (including whole path)
We need to archive the target file in a ZIP file. Do we need to write an adapter module for that? Not necessarily
we may try to use a command line archive program. One of them is 7-ZIP ( 7-Zip Command Line Version ).
This example will archive the incoming file to z ZIP file with the same name as the file initially had
and once more remove the “old” file.
How to check command lines execution:
To get more batch file commands: