It looks something like this.
TextBuffer TextBuffer = new TextBuffer();
str FileName;
;
// Skriver bat fil til at overf�re filer med ftp.
// Write bat file for calling the DOS Ftp program
TextBuffer.appendText('ftp -s:' + 'C:\\TEMP\\put.txt -i ftp.server.com\n\n');
TextBuffer.toFile('C:\\TEMP\\ftp.bat');
// Skriver put.txt til styring af ftp overf�rsel.
// Writes put.txt with commands for the ftp program.
TextBuffer.setText('ftpuser\n'); // The login username for the ftp server.
TextBuffer.appendText('ftppassword\n'); // The Password.
TextBuffer.appendText('bin\n'); // Switch the ftp transfer to bin mode.
TextBuffer.appendText('mput somefile.zip\n'); // mput the file you want to upload, use mget to download
TextBuffer.appendText('bye'); // shutdown the ftp program.
TextBuffer.toFile('C:\\TEMP\\put.txt');
WinAPI::shellExecute('C:\\TEMP\\ftp.bat','','C:\\TEMP\\');
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Axapter
Sent: 29. april 2005 10:49
To: [email protected]
Subject: [development-axapta] How to send file to FTP
Hi all,
Does anyone has any experienced in using FTP ??
Can u give the example for me..
Thanks in advance,
Ax
________________________________
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

