Hi there.
I need to creata an export file and place it in an ftp site.
I will need to run this from the Job Scheduler, so I know I have to create a codeunit or Report for it, which I am fine with.
However I am not sure about placing it in the Ftp site,
I have the FTP address, user name and password and the name that file needs to be.
I am not sure how to send the user name and password to the ftp.
Anyone has any ideas ???
Thanks
0
Comments
I traded my sanity for a railgun
which DLL or OCX do you suggest that I can use ??
Thanks
I have used this.
Frst I build a command file which contains the commands for FTP, then I pass this file to FTP.EXE.
Something like this. CommandsFile has DataType File.
CommandsFileTxt := ENVIRON('TEMP') + '\NavFTP_CommFile.txt';
CommandsFile.TEXTMODE(TRUE);
CommandsFile.WRITEMODE(TRUE);
CommandsFile.CREATE(CommandsFileTxt);
CommandsFile.WRITE('Username');
CommandsFile.WRITE('Password');
CommandsFile.WRITE('Put ' + 'C:\data.txt ' + 'OurData.txt');
CommandsFile.WRITE('Quit');
CommandsFile.TRUNC;
CommandsFile.CLOSE;
SHELL(STRSUBSTNO('ftp.exe -s:"%1" %2', CommandsFileTxt, 'ftp.somewhere.com'));
I traded my sanity for a railgun
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Chilkat's activex ftp component
Dart's FTP for ActiveX (part of the PowerTCP series)
nSoftware's IP*Works! ftp component
nBit Easy FTP DLL
You can search for any of these and find them rather easily. I'm not as familiar with the nBit one. The other names have been around a while and are likely reputable, but as always, do you own research and find out for yourself:)
I traded my sanity for a railgun
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
I traded my sanity for a railgun
Using the built in Windows ftp client
Using CuteFTP
www.NextEqualZero.com
A technical eye on Dynamics NAV