Page 1 of 1

FTP APPEND

Posted: Mon Nov 23, 2015 11:51 am
by mslv
Dear all, i have the following need

Computer 1 : 1 file "a" generated every hour
Computer 2 : 1 repository file "b" has daily repository

Need : using FTP i need to append file "a" in file "b" in order to have in "b" the sum of all the files "a" generated during the day

I tried to use FTP CMMAND and APPEND inside it but it is not recognized

Any Idea?

Regards

Ruggero

Re: FTP APPEND

Posted: Mon Nov 23, 2015 12:33 pm
by Oleg
Now RoboTask hasn't append mode of file uploading. I added this into our ToDo, we'll implement this in future release.

Now you can upload and replace file or upload and save the file with new name.
But now you can simulate APPEND command too. But the algorithm will be a little bit complex, similar to this:
1. Download result file
2. combine it with new file. See command line
copy <file1> +<file2> <result file>
or
copy /b <file1> +<file2> <result file>
if files are binary files
3. Upload result file and replace the result file.

Do you need simple example?

Re: FTP APPEND

Posted: Mon Nov 23, 2015 1:15 pm
by mslv
Dear Oleg,

thanks for your answer.

This is what i'm actually doing:

s3=Name=FTP Log On

s3=Name=FTP Transfer Type

s3=Name=FTP File Loop
s3=Name=FTP Rename File
s3=Name=FTP Download
s3=Name=FTP Rename File
s3=Name=End Loop

s3=Name=FTP Log Off

s3=Name=Run command-line utility: mergfile.cmd

the point is that I should do it on the remote computer

i'll try to keet the copy in Comp1 and then transfer it to Computer 2

Thanks to let us know when the append should be possible

Best Regards

Ruggero