Download and Append contents of file to another file

Core FTP client questions and answers
Post Reply
cause4riot
Posts: 2
Joined: Thu Oct 16, 2008 4:45 pm

Download and Append contents of file to another file

Post by cause4riot »

Folks,

I've searched and searched, but haven't found the answer.

I would like Core FTP Lite to append the contents of a downloaded text file into another file after successful download.

I tried, in the Post Transfer script area:

cmd.exe /c type source_file.txt >> master_file.txt

But got an "unrecognized command" error.

Can anyone help me?
cause4riot
Posts: 2
Joined: Thu Oct 16, 2008 4:45 pm

Post by cause4riot »

I figured out how to do this using the Command Line.

For those as new to this as I am, here's what I did:

First, I created a .bat file with the coreftp.exe command line. Just create a new text document, type in the following, and rename it download.bat

"c:\program files\coreftp\coreftp.exe" -s -O -d /downloads/*.txt -site mysite -p c:\windows\desktop\

Then, create another .bat with your copy, rename, append commands, whatever. And within that .bat file, type the following line when you want to initiate the download.

call download.bat

That's it!
Post Reply