February 28th, 2002, 11:01 AM
FTP a file
I have a client that would like to send an XML file generated from their website to another webserver's FTP directory to be later picked up by a robot and processed. I have written the portion of the code that will generate the file, however I do not know how to then send it to the FTP server using c#.
Any help in this matter would be most appreciated.
Thank you very much in advance.
March 2nd, 2002, 09:01 AM
Maybe this is not of a gret help but you can use a batch script to do this.
ftp -i -n -v -s:file2.txt
open <ip address>
user <username> <password>
Sure this is a far from ideal solution, specially because of the plain text passowrd on file2, but depending on the situation you can live with that.