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?
Download and Append contents of file to another file
-
- Posts: 2
- Joined: Thu Oct 16, 2008 4:45 pm
-
- Posts: 2
- Joined: Thu Oct 16, 2008 4:45 pm
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!
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!